diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 19:58:51 +0900 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2013-11-17 19:34:20 +0100 |
commit | bc8fdfbe75058c6569dd6a08bdc2a411db533c47 (patch) | |
tree | 0d6bc33b1f36fac7b744b49971ea8013f5b88cbc /drivers/watchdog/omap_wdt.c | |
parent | 813296a1a209baaf1471c360591946edd795bcbe (diff) | |
download | blackbird-op-linux-bc8fdfbe75058c6569dd6a08bdc2a411db533c47.tar.gz blackbird-op-linux-bc8fdfbe75058c6569dd6a08bdc2a411db533c47.zip |
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/omap_wdt.c')
-rw-r--r-- | drivers/watchdog/omap_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c index af88ffd1068f..7b79ca093e89 100644 --- a/drivers/watchdog/omap_wdt.c +++ b/drivers/watchdog/omap_wdt.c @@ -205,7 +205,7 @@ static const struct watchdog_ops omap_wdt_ops = { static int omap_wdt_probe(struct platform_device *pdev) { - struct omap_wd_timer_platform_data *pdata = pdev->dev.platform_data; + struct omap_wd_timer_platform_data *pdata = dev_get_platdata(&pdev->dev); struct watchdog_device *omap_wdt; struct resource *res, *mem; struct omap_wdt_dev *wdev; |