[PATCH staging] tpci200: fix section mismatch warning

Stephen Hemminger shemminger at vyatta.com
Fri Sep 7 15:50:54 UTC 2012


PCI probe routines have to be named _probe to avoid section mismatch warning.
Found when doing 'make allmodconfig'

Signed-off-by: Stephen Hemminger <shemminger at vyatta.com>


--- a/drivers/staging/ipack/bridges/tpci200.c	2012-09-07 08:43:36.505462238 -0700
+++ b/drivers/staging/ipack/bridges/tpci200.c	2012-09-07 08:45:48.140140229 -0700
@@ -786,8 +786,8 @@ static int tpci200_install(struct tpci20
 	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;
@@ -877,7 +877,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),
 };
 



More information about the devel mailing list