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>
Fri, 23 Dec 2011 01:06:54 +0000 (10:06 +0900)
commit4d84e970d0faec772a9eaa818feee38aeca121b2
tree40ae3a08e363625388ca0fa39591fb590b374bee
parent659d73ada5d6869dc18838c9125731a750389019
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