IXP4xx: Silence section mismatch warning in Ethernet driver.
authorKrzysztof Hałasa <khc@pm.waw.pl>
Wed, 26 Nov 2008 21:59:18 +0000 (22:59 +0100)
committerKrzysztof Hałasa <khc@pm.waw.pl>
Sun, 21 Dec 2008 23:41:50 +0000 (00:41 +0100)
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
drivers/net/arm/ixp4xx_eth.c

index 14ffa2a61890d12df652841e0f6d16b5278436a5..e6e4004b13bb8b32a47acfe514fb249f109f0b3d 100644 (file)
@@ -1231,7 +1231,7 @@ static int __devexit eth_remove_one(struct platform_device *pdev)
        return 0;
 }
 
-static struct platform_driver drv = {
+static struct platform_driver ixp4xx_eth_driver = {
        .driver.name    = DRV_NAME,
        .probe          = eth_init_one,
        .remove         = eth_remove_one,
@@ -1247,12 +1247,12 @@ static int __init eth_init_module(void)
        mdio_regs = (struct eth_regs __iomem *)IXP4XX_EthB_BASE_VIRT;
        __raw_writel(DEFAULT_CORE_CNTRL, &mdio_regs->core_control);
 
-       return platform_driver_register(&drv);
+       return platform_driver_register(&ixp4xx_eth_driver);
 }
 
 static void __exit eth_cleanup_module(void)
 {
-       platform_driver_unregister(&drv);
+       platform_driver_unregister(&ixp4xx_eth_driver);
 }
 
 MODULE_AUTHOR("Krzysztof Halasa");