aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/iTCO_wdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog/iTCO_wdt.c')
-rw-r--r--drivers/watchdog/iTCO_wdt.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/watchdog/iTCO_wdt.c b/drivers/watchdog/iTCO_wdt.c
index 6130321da387..04f8af65acfd 100644
--- a/drivers/watchdog/iTCO_wdt.c
+++ b/drivers/watchdog/iTCO_wdt.c
@@ -56,8 +56,6 @@
56#include <linux/types.h> /* For standard types (like size_t) */ 56#include <linux/types.h> /* For standard types (like size_t) */
57#include <linux/errno.h> /* For the -ENODEV/... values */ 57#include <linux/errno.h> /* For the -ENODEV/... values */
58#include <linux/kernel.h> /* For printk/panic/... */ 58#include <linux/kernel.h> /* For printk/panic/... */
59#include <linux/miscdevice.h> /* For MODULE_ALIAS_MISCDEV
60 (WATCHDOG_MINOR) */
61#include <linux/watchdog.h> /* For the watchdog specific items */ 59#include <linux/watchdog.h> /* For the watchdog specific items */
62#include <linux/init.h> /* For __init/__exit/... */ 60#include <linux/init.h> /* For __init/__exit/... */
63#include <linux/fs.h> /* For file operations */ 61#include <linux/fs.h> /* For file operations */
@@ -394,7 +392,7 @@ static int iTCO_wdt_probe(struct platform_device *dev)
394{ 392{
395 int ret = -ENODEV; 393 int ret = -ENODEV;
396 unsigned long val32; 394 unsigned long val32;
397 struct lpc_ich_info *ich_info = dev->dev.platform_data; 395 struct lpc_ich_info *ich_info = dev_get_platdata(&dev->dev);
398 396
399 if (!ich_info) 397 if (!ich_info)
400 goto out; 398 goto out;
@@ -582,5 +580,4 @@ MODULE_AUTHOR("Wim Van Sebroeck <wim@iguana.be>");
582MODULE_DESCRIPTION("Intel TCO WatchDog Timer Driver"); 580MODULE_DESCRIPTION("Intel TCO WatchDog Timer Driver");
583MODULE_VERSION(DRV_VERSION); 581MODULE_VERSION(DRV_VERSION);
584MODULE_LICENSE("GPL"); 582MODULE_LICENSE("GPL");
585MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR);
586MODULE_ALIAS("platform:" DRV_NAME); 583MODULE_ALIAS("platform:" DRV_NAME);