diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 06:58:51 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2013-11-17 13:34:20 -0500 |
commit | bc8fdfbe75058c6569dd6a08bdc2a411db533c47 (patch) | |
tree | 0d6bc33b1f36fac7b744b49971ea8013f5b88cbc /drivers/watchdog/mv64x60_wdt.c | |
parent | 813296a1a209baaf1471c360591946edd795bcbe (diff) |
watchdog: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/mv64x60_wdt.c')
-rw-r--r-- | drivers/watchdog/mv64x60_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/mv64x60_wdt.c b/drivers/watchdog/mv64x60_wdt.c index e4cf98019265..2f2ff19da6e2 100644 --- a/drivers/watchdog/mv64x60_wdt.c +++ b/drivers/watchdog/mv64x60_wdt.c | |||
@@ -255,7 +255,7 @@ static struct miscdevice mv64x60_wdt_miscdev = { | |||
255 | 255 | ||
256 | static int mv64x60_wdt_probe(struct platform_device *dev) | 256 | static int mv64x60_wdt_probe(struct platform_device *dev) |
257 | { | 257 | { |
258 | struct mv64x60_wdt_pdata *pdata = dev->dev.platform_data; | 258 | struct mv64x60_wdt_pdata *pdata = dev_get_platdata(&dev->dev); |
259 | struct resource *r; | 259 | struct resource *r; |
260 | int timeout = 10; | 260 | int timeout = 10; |
261 | 261 | ||