aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorRussell King <rmk+lkml@arm.linux.org.uk>2005-10-16 16:31:36 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-10-28 18:37:01 -0400
commita1720fdbd0f90e64668a59a304d01c5ba001b450 (patch)
tree598e37eb0e64f78f29e27f85cfb63b60912994b7 /drivers/pci
parentd10211b278c70fbebb83fb9e4ee717ca13f69b2d (diff)
[PATCH] PCI: Fixup PCI driver shutdown
Add a warning to pci driver registration code so that we know whether we have drivers using the obsolete driver shutdown method. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/pci-driver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
index 0d0d533894e0..f906f1a8fe6a 100644
--- a/drivers/pci/pci-driver.c
+++ b/drivers/pci/pci-driver.c
@@ -377,6 +377,10 @@ int pci_register_driver(struct pci_driver *drv)
377 * the pci shutdown function, this test can go away. */ 377 * the pci shutdown function, this test can go away. */
378 if (!drv->driver.shutdown) 378 if (!drv->driver.shutdown)
379 drv->driver.shutdown = pci_device_shutdown; 379 drv->driver.shutdown = pci_device_shutdown;
380 else
381 printk(KERN_WARNING "Warning: PCI driver %s has a struct "
382 "device_driver shutdown method, please update!\n",
383 drv->name);
380 drv->driver.owner = drv->owner; 384 drv->driver.owner = drv->owner;
381 drv->driver.kobj.ktype = &pci_driver_kobj_type; 385 drv->driver.kobj.ktype = &pci_driver_kobj_type;
382 386