summaryrefslogtreecommitdiff
path: root/drivers/ptp
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-03-10 02:47:24 +0400
committerDavid S. Miller <davem@davemloft.net>2012-03-10 02:47:24 +0400
commitd8d789497aa016f802b95606c6473e92361ec0b5 (patch)
treeef6100c2f6ca2605804e7e7d13294f5f648081e7 /drivers/ptp
parent4d29515f5a2e062c3fe82bfb574da70ed544ffad (diff)
downloadlinux-d8d789497aa016f802b95606c6473e92361ec0b5.tar.xz
ptp_pch: rename pch_pcidev to pci_driver to fix section mismatch warnings.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ptp')
-rw-r--r--drivers/ptp/ptp_pch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ptp/ptp_pch.c b/drivers/ptp/ptp_pch.c
index 0b38ee1b0f85..375eb04c16ea 100644
--- a/drivers/ptp/ptp_pch.c
+++ b/drivers/ptp/ptp_pch.c
@@ -694,7 +694,7 @@ static DEFINE_PCI_DEVICE_TABLE(pch_ieee1588_pcidev_id) = {
{0}
};
-static struct pci_driver pch_pcidev = {
+static struct pci_driver pch_driver = {
.name = KBUILD_MODNAME,
.id_table = pch_ieee1588_pcidev_id,
.probe = pch_probe,
@@ -705,7 +705,7 @@ static struct pci_driver pch_pcidev = {
static void __exit ptp_pch_exit(void)
{
- pci_unregister_driver(&pch_pcidev);
+ pci_unregister_driver(&pch_driver);
}
static s32 __init ptp_pch_init(void)
@@ -713,7 +713,7 @@ static s32 __init ptp_pch_init(void)
s32 ret;
/* register the driver with the pci core */
- ret = pci_register_driver(&pch_pcidev);
+ ret = pci_register_driver(&pch_driver);
return ret;
}