ar71xx: remove __dev{init,exit} annotations from kernel files
[openwrt.git] / target / linux / ar71xx / files / drivers / net / ethernet / atheros / ag71xx / ag71xx_phy.c
index ebdbc5b..71f0b1d 100644 (file)
@@ -48,7 +48,7 @@ void ag71xx_phy_start(struct ag71xx *ag)
 
        if (ag->phy_dev) {
                phy_start(ag->phy_dev);
-       } else if (pdata->switch_data) {
+       } else if (pdata->mii_bus_dev && pdata->switch_data) {
                ag71xx_ar7240_start(ag);
        } else {
                ag->link = 1;
@@ -63,7 +63,7 @@ void ag71xx_phy_stop(struct ag71xx *ag)
 
        if (ag->phy_dev)
                phy_stop(ag->phy_dev);
-       else if (pdata->switch_data)
+       else if (pdata->mii_bus_dev && pdata->switch_data)
                ag71xx_ar7240_stop(ag);
 
        spin_lock_irqsave(&ag->lock, flags);
@@ -193,7 +193,7 @@ static struct mii_bus *dev_to_mii_bus(struct device *dev)
        return NULL;
 }
 
-int __devinit ag71xx_phy_connect(struct ag71xx *ag)
+int ag71xx_phy_connect(struct ag71xx *ag)
 {
        struct ag71xx_platform_data *pdata = ag71xx_get_pdata(ag);