Changeset 29015


Ignore:
Timestamp:
2011-11-13T12:27:01+01:00 (6 years ago)
Author:
juhosg
Message:

ar71xx: ag71xx: remove unused mii_ctrl field from struct ag71xx

Location:
trunk/target/linux/ar71xx/files/drivers/net/ag71xx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h

    r29014 r29015  
    141141struct ag71xx { 
    142142        void __iomem            *mac_base; 
    143         void __iomem            *mii_ctrl; 
    144143 
    145144        spinlock_t              lock; 
  • trunk/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c

    r29013 r29015  
    11151115        } 
    11161116 
    1117         res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mii_ctrl"); 
    1118         if (!res) { 
    1119                 dev_err(&pdev->dev, "no mii_ctrl resource found\n"); 
    1120                 err = -ENXIO; 
    1121                 goto err_unmap_base; 
    1122         } 
    1123  
    1124         ag->mii_ctrl = ioremap_nocache(res->start, res->end - res->start + 1); 
    1125         if (!ag->mii_ctrl) { 
    1126                 dev_err(&pdev->dev, "unable to ioremap mii_ctrl\n"); 
    1127                 err = -ENOMEM; 
    1128                 goto err_unmap_base; 
    1129         } 
    1130  
    11311117        dev->irq = platform_get_irq(pdev, 0); 
    11321118        err = request_irq(dev->irq, ag71xx_interrupt, 
     
    11351121        if (err) { 
    11361122                dev_err(&pdev->dev, "unable to request IRQ %d\n", dev->irq); 
    1137                 goto err_unmap_mii_ctrl; 
     1123                goto err_unmap_base; 
    11381124        } 
    11391125 
     
    12011187err_free_irq: 
    12021188        free_irq(dev->irq, dev); 
    1203 err_unmap_mii_ctrl: 
    1204         iounmap(ag->mii_ctrl); 
    12051189err_unmap_base: 
    12061190        iounmap(ag->mac_base); 
     
    12231207                unregister_netdev(dev); 
    12241208                free_irq(dev->irq, dev); 
    1225                 iounmap(ag->mii_ctrl); 
    12261209                iounmap(ag->mac_base); 
    12271210                kfree(dev); 
Note: See TracChangeset for help on using the changeset viewer.