]> git.karo-electronics.de Git - karo-tx-linux.git/commit
serial: samsung: Keep a copy of the location of platform data in driver's private...
authorThomas Abraham <thomas.abraham@linaro.org>
Mon, 24 Oct 2011 09:47:25 +0000 (11:47 +0200)
committerKukjin Kim <kgene.kim@samsung.com>
Tue, 8 Nov 2011 07:53:22 +0000 (16:53 +0900)
commit5ece29549af209f26e865626344fa01e2862679e
treefe24401740b3cfc52ba8d06f4af52efbb8306640
parent8b40df4650fe34e5be19559e5e2fbd3093816393
serial: samsung: Keep a copy of the location of platform data in driver's private data

Add a pointer to the location of the platform data in the driver's private
data. When instantiated using device tree, pdev->dev->platform_data does not
necessarily point to a valid instance of platform data. The platform data
pointer in the driver's private data could be set to pdev->dev->platform_data
or platform data instance created from device tree.

Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
drivers/tty/serial/s5pv210.c
drivers/tty/serial/samsung.c
drivers/tty/serial/samsung.h