From rmk+greg=kroah.com@arm.linux.org.uk Sun Oct 16 13:35:53 2005 Date: Sun, 16 Oct 2005 21:31:36 +0100 From: Russell King To: Andrew Morton , Greg KH Subject: PCI: Fixup PCI driver shutdown Message-ID: <20051016203135.GD14413@flint.arm.linux.org.uk> Content-Disposition: inline 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 Signed-off-by: Greg Kroah-Hartman --- drivers/pci/pci-driver.c | 4 ++++ 1 file changed, 4 insertions(+) --- gregkh-2.6.orig/drivers/pci/pci-driver.c +++ gregkh-2.6/drivers/pci/pci-driver.c @@ -377,6 +377,10 @@ int pci_register_driver(struct pci_drive * the pci shutdown function, this test can go away. */ if (!drv->driver.shutdown) drv->driver.shutdown = pci_device_shutdown; + else + printk(KERN_WARNING "Warning: PCI driver %s has a struct " + "device_driver shutdown method, please update!\n", + drv->name); drv->driver.owner = drv->owner; drv->driver.kobj.ktype = &pci_driver_kobj_type;