Merge master.kernel.org:/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog

* master.kernel.org:/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog:
[WATCHDOG] pcwd_usb.c generic HID include file
[WATCHDOG] watchdog miscdevice patch
[WATCHDOG] rm9k_wdt: fix interrupt handler arguments
[WATCHDOG] rm9k_wdt: fix compilation

+28 -31
+3 -3
drivers/char/watchdog/at91rm9200_wdt.c
··· 203 203 { 204 204 int res; 205 205 206 - if (at91wdt_miscdev.dev) 206 + if (at91wdt_miscdev.parent) 207 207 return -EBUSY; 208 - at91wdt_miscdev.dev = &pdev->dev; 208 + at91wdt_miscdev.parent = &pdev->dev; 209 209 210 210 res = misc_register(&at91wdt_miscdev); 211 211 if (res) ··· 221 221 222 222 res = misc_deregister(&at91wdt_miscdev); 223 223 if (!res) 224 - at91wdt_miscdev.dev = NULL; 224 + at91wdt_miscdev.parent = NULL; 225 225 226 226 return res; 227 227 }
+1 -1
drivers/char/watchdog/mpcore_wdt.c
··· 347 347 goto err_free; 348 348 } 349 349 350 - mpcore_wdt_miscdev.dev = &dev->dev; 350 + mpcore_wdt_miscdev.parent = &dev->dev; 351 351 ret = misc_register(&mpcore_wdt_miscdev); 352 352 if (ret) { 353 353 dev_printk(KERN_ERR, _dev, "cannot register miscdev on minor=%d (err=%d)\n",
+1 -1
drivers/char/watchdog/omap_wdt.c
··· 290 290 omap_wdt_disable(); 291 291 omap_wdt_adjust_timeout(timer_margin); 292 292 293 - omap_wdt_miscdev.dev = &pdev->dev; 293 + omap_wdt_miscdev.parent = &pdev->dev; 294 294 ret = misc_register(&omap_wdt_miscdev); 295 295 if (ret) 296 296 goto fail;
+1 -4
drivers/char/watchdog/pcwd_usb.c
··· 42 42 #include <asm/uaccess.h> 43 43 #include <linux/usb.h> 44 44 #include <linux/mutex.h> 45 + #include <linux/hid.h> /* For HID_REQ_SET_REPORT & HID_DT_REPORT */ 45 46 46 47 47 48 #ifdef CONFIG_USB_DEBUG ··· 109 108 #define CMD_WRITE_WATCHDOG_TIMEOUT 0x19 /* Write Current Watchdog Time */ 110 109 #define CMD_ENABLE_WATCHDOG 0x30 /* Enable / Disable Watchdog */ 111 110 #define CMD_DISABLE_WATCHDOG CMD_ENABLE_WATCHDOG 112 - 113 - /* Some defines that I like to be somewhere else like include/linux/usb_hid.h */ 114 - #define HID_REQ_SET_REPORT 0x09 115 - #define HID_DT_REPORT (USB_TYPE_CLASS | 0x02) 116 111 117 112 /* We can only use 1 card due to the /dev/watchdog restriction */ 118 113 static int cards_found;
+22 -22
drivers/char/watchdog/rm9k_wdt.c
··· 47 47 48 48 49 49 /* Function prototypes */ 50 - static irqreturn_t wdt_gpi_irqhdl(int, void *, struct pt_regs *); 50 + static irqreturn_t wdt_gpi_irqhdl(int, void *); 51 51 static void wdt_gpi_start(void); 52 52 static void wdt_gpi_stop(void); 53 53 static void wdt_gpi_set_timeout(unsigned int); ··· 94 94 MODULE_PARM_DESC(nowayout, "Watchdog cannot be disabled once started"); 95 95 96 96 97 + /* Kernel interfaces */ 98 + static struct file_operations fops = { 99 + .owner = THIS_MODULE, 100 + .open = wdt_gpi_open, 101 + .release = wdt_gpi_release, 102 + .write = wdt_gpi_write, 103 + .unlocked_ioctl = wdt_gpi_ioctl, 104 + }; 105 + 106 + static struct miscdevice miscdev = { 107 + .minor = WATCHDOG_MINOR, 108 + .name = wdt_gpi_name, 109 + .fops = &fops, 110 + }; 111 + 112 + static struct notifier_block wdt_gpi_shutdown = { 113 + .notifier_call = wdt_gpi_notify, 114 + }; 115 + 116 + 97 117 /* Interrupt handler */ 98 - static irqreturn_t wdt_gpi_irqhdl(int irq, void *ctxt, struct pt_regs *regs) 118 + static irqreturn_t wdt_gpi_irqhdl(int irq, void *ctxt) 99 119 { 100 120 if (!unlikely(__raw_readl(wd_regs + 0x0008) & 0x1)) 101 121 return IRQ_NONE; ··· 330 310 331 311 return NOTIFY_DONE; 332 312 } 333 - 334 - 335 - /* Kernel interfaces */ 336 - static struct file_operations fops = { 337 - .owner = THIS_MODULE, 338 - .open = wdt_gpi_open, 339 - .release = wdt_gpi_release, 340 - .write = wdt_gpi_write, 341 - .unlocked_ioctl = wdt_gpi_ioctl, 342 - }; 343 - 344 - static struct miscdevice miscdev = { 345 - .minor = WATCHDOG_MINOR, 346 - .name = wdt_gpi_name, 347 - .fops = &fops, 348 - }; 349 - 350 - static struct notifier_block wdt_gpi_shutdown = { 351 - .notifier_call = wdt_gpi_notify, 352 - }; 353 313 354 314 355 315 /* Init & exit procedures */