]> 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>
Thu, 3 Nov 2011 02:08:43 +0000 (11:08 +0900)
commit54143e15dd1dda321fb01f61363fcab8bb8e42bf
treeb57b08a8052d724f0ac13ba7c14886a4e15487ef
parent0fba97ade058666fefe622d7f791dde98ea034c9
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