aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/watchdog/iTCO_wdt.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-30 19:58:51 +0900
committerWim Van Sebroeck <wim@iguana.be>2013-11-17 19:34:20 +0100
commitbc8fdfbe75058c6569dd6a08bdc2a411db533c47 (patch)
tree0d6bc33b1f36fac7b744b49971ea8013f5b88cbc /drivers/watchdog/iTCO_wdt.c
parentwatchdog: imx2_wdt: expose module alias for loading from device-tree (diff)
downloadwireguard-linux-bc8fdfbe75058c6569dd6a08bdc2a411db533c47.tar.xz
wireguard-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/iTCO_wdt.c')
-rw-r--r--drivers/watchdog/iTCO_wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/iTCO_wdt.c b/drivers/watchdog/iTCO_wdt.c
index 6130321da387..439b160b3e0f 100644
--- a/drivers/watchdog/iTCO_wdt.c
+++ b/drivers/watchdog/iTCO_wdt.c
@@ -394,7 +394,7 @@ static int iTCO_wdt_probe(struct platform_device *dev)
{
int ret = -ENODEV;
unsigned long val32;
- struct lpc_ich_info *ich_info = dev->dev.platform_data;
+ struct lpc_ich_info *ich_info = dev_get_platdata(&dev->dev);
if (!ich_info)
goto out;