diff options
-rw-r--r-- | drivers/watchdog/iTCO_wdt.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/watchdog/iTCO_wdt.c b/drivers/watchdog/iTCO_wdt.c index bc69731a5e6a..f7e90fe47b71 100644 --- a/drivers/watchdog/iTCO_wdt.c +++ b/drivers/watchdog/iTCO_wdt.c | |||
@@ -786,7 +786,6 @@ static int __devinit iTCO_wdt_init(struct pci_dev *pdev, | |||
786 | /* Something's wrong here, ACPIBASE has to be set */ | 786 | /* Something's wrong here, ACPIBASE has to be set */ |
787 | printk(KERN_ERR PFX "failed to get TCOBASE address, " | 787 | printk(KERN_ERR PFX "failed to get TCOBASE address, " |
788 | "device disabled by hardware/BIOS\n"); | 788 | "device disabled by hardware/BIOS\n"); |
789 | pci_dev_put(pdev); | ||
790 | return -ENODEV; | 789 | return -ENODEV; |
791 | } | 790 | } |
792 | iTCO_wdt_private.iTCO_version = | 791 | iTCO_wdt_private.iTCO_version = |
@@ -886,7 +885,6 @@ out_unmap: | |||
886 | if (iTCO_wdt_private.iTCO_version == 2) | 885 | if (iTCO_wdt_private.iTCO_version == 2) |
887 | iounmap(iTCO_wdt_private.gcs); | 886 | iounmap(iTCO_wdt_private.gcs); |
888 | out: | 887 | out: |
889 | pci_dev_put(iTCO_wdt_private.pdev); | ||
890 | iTCO_wdt_private.ACPIBASE = 0; | 888 | iTCO_wdt_private.ACPIBASE = 0; |
891 | return ret; | 889 | return ret; |
892 | } | 890 | } |