This is patch 2 in the series of patches that converts
Marcus Junker's w83697hf watchdog driver to Samuel Tardieau's
w83697hf/hg watchdog driver.
This patch contains following changes:
- wdt_io is 2 bytes long. We should do a
request_region for 2 bytes instead of 1.
Signed-off-by: Samuel Tardieu <sam@rfc1149.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
- if (!request_region(wdt_io, 1, WATCHDOG_NAME)) {
+ if (!request_region(wdt_io, 2, WATCHDOG_NAME)) {
printk (KERN_ERR PFX "I/O address 0x%04x already in use\n",
wdt_io);
ret = -EIO;
printk (KERN_ERR PFX "I/O address 0x%04x already in use\n",
wdt_io);
ret = -EIO;
unreg_reboot:
unregister_reboot_notifier(&wdt_notifier);
unreg_regions:
unreg_reboot:
unregister_reboot_notifier(&wdt_notifier);
unreg_regions:
- release_region(wdt_io, 1);
+ release_region(wdt_io, 2);
{
misc_deregister(&wdt_miscdev);
unregister_reboot_notifier(&wdt_notifier);
{
misc_deregister(&wdt_miscdev);
unregister_reboot_notifier(&wdt_notifier);
- release_region(wdt_io,1);
+ release_region(wdt_io, 2);