staging: tpci200: fix section mismatch warning
authorStephen Hemminger <shemminger@vyatta.com>
Fri, 7 Sep 2012 15:50:54 +0000 (08:50 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Sep 2012 05:02:20 +0000 (22:02 -0700)
PCI probe routines have to be named _probe to avoid section mismatch warning.
Found when doing 'make allmodconfig'

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ipack/bridges/tpci200.c

index b81a8c9a2fa9082a7175418c3138cc7cde7c211e..0d61090819fe44ec3b639a804d199885507b1f5a 100644 (file)
@@ -560,8 +560,8 @@ static int tpci200_install(struct tpci200_board *tpci200)
        return 0;
 }
 
-static int tpci200_pciprobe(struct pci_dev *pdev,
-                           const struct pci_device_id *id)
+static int tpci200_pci_probe(struct pci_dev *pdev,
+                            const struct pci_device_id *id)
 {
        int ret, i;
        struct tpci200_board *tpci200;
@@ -684,7 +684,7 @@ MODULE_DEVICE_TABLE(pci, tpci200_idtable);
 static struct pci_driver tpci200_pci_drv = {
        .name = "tpci200",
        .id_table = tpci200_idtable,
-       .probe = tpci200_pciprobe,
+       .probe = tpci200_pci_probe,
        .remove = __devexit_p(tpci200_pci_remove),
 };