Prarit Bhargava ad1d3a26cd watchdog: iTCO_wdt.c: remove extra pci_dev_put()'s from init code
The iTCO_wdt driver erroneously releases the pci_dev, and causes PCI hotremove
to fail because of an incorrect usage count.

The probe for this driver does a for_each_pci_dev() which gets a reference for
a pci_dev when iTCO_wdt_init() is successful.  The for_each_pci_dev() loop
puts a reference for a pci_dev when iTCO_wdt_init() fails, so the
iTCO_wdt_init() does not need to do any pci_dev_put()'s.

The only pci_dev_put() that is required is in the iTCO_wdt_cleanup() function.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
2010-10-28 22:34:37 +00:00
..
2010-03-07 10:30:57 +00:00
2010-03-07 10:30:57 +00:00
2010-03-07 10:30:57 +00:00
2010-03-07 10:30:57 +00:00
2010-03-07 10:30:57 +00:00
2009-09-18 08:39:37 +00:00
2010-03-07 10:30:57 +00:00
2010-03-07 10:30:57 +00:00
2010-10-28 21:42:59 +00:00
2010-03-07 10:30:57 +00:00
2010-03-07 10:30:57 +00:00
2010-03-07 10:30:57 +00:00
2009-06-18 07:30:30 +00:00
2009-09-18 08:39:37 +00:00
2009-06-18 07:30:30 +00:00
2010-03-07 10:30:57 +00:00
2010-03-07 10:30:57 +00:00