diff options
Diffstat (limited to 'drivers/net/smc91x.c')
-rw-r--r-- | drivers/net/smc91x.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/net/smc91x.c b/drivers/net/smc91x.c index 6f9895d4e5bd..35c56abf4113 100644 --- a/drivers/net/smc91x.c +++ b/drivers/net/smc91x.c | |||
@@ -1696,7 +1696,7 @@ static const struct ethtool_ops smc_ethtool_ops = { | |||
1696 | * I just deleted auto_irq.c, since it was never built... | 1696 | * I just deleted auto_irq.c, since it was never built... |
1697 | * --jgarzik | 1697 | * --jgarzik |
1698 | */ | 1698 | */ |
1699 | static int __init smc_findirq(struct smc_local *lp) | 1699 | static int __devinit smc_findirq(struct smc_local *lp) |
1700 | { | 1700 | { |
1701 | void __iomem *ioaddr = lp->base; | 1701 | void __iomem *ioaddr = lp->base; |
1702 | int timeout = 20; | 1702 | int timeout = 20; |
@@ -1770,7 +1770,7 @@ static int __init smc_findirq(struct smc_local *lp) | |||
1770 | * o actually GRAB the irq. | 1770 | * o actually GRAB the irq. |
1771 | * o GRAB the region | 1771 | * o GRAB the region |
1772 | */ | 1772 | */ |
1773 | static int __init smc_probe(struct net_device *dev, void __iomem *ioaddr, | 1773 | static int __devinit smc_probe(struct net_device *dev, void __iomem *ioaddr, |
1774 | unsigned long irq_flags) | 1774 | unsigned long irq_flags) |
1775 | { | 1775 | { |
1776 | struct smc_local *lp = netdev_priv(dev); | 1776 | struct smc_local *lp = netdev_priv(dev); |
@@ -2060,6 +2060,7 @@ static int smc_request_attrib(struct platform_device *pdev, | |||
2060 | struct net_device *ndev) | 2060 | struct net_device *ndev) |
2061 | { | 2061 | { |
2062 | struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib"); | 2062 | struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib"); |
2063 | struct smc_local *lp __maybe_unused = netdev_priv(ndev); | ||
2063 | 2064 | ||
2064 | if (!res) | 2065 | if (!res) |
2065 | return 0; | 2066 | return 0; |
@@ -2074,6 +2075,7 @@ static void smc_release_attrib(struct platform_device *pdev, | |||
2074 | struct net_device *ndev) | 2075 | struct net_device *ndev) |
2075 | { | 2076 | { |
2076 | struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib"); | 2077 | struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib"); |
2078 | struct smc_local *lp __maybe_unused = netdev_priv(ndev); | ||
2077 | 2079 | ||
2078 | if (res) | 2080 | if (res) |
2079 | release_mem_region(res->start, ATTRIB_SIZE); | 2081 | release_mem_region(res->start, ATTRIB_SIZE); |
@@ -2124,7 +2126,7 @@ static void smc_release_datacs(struct platform_device *pdev, struct net_device * | |||
2124 | * 0 --> there is a device | 2126 | * 0 --> there is a device |
2125 | * anything else, error | 2127 | * anything else, error |
2126 | */ | 2128 | */ |
2127 | static int smc_drv_probe(struct platform_device *pdev) | 2129 | static int __devinit smc_drv_probe(struct platform_device *pdev) |
2128 | { | 2130 | { |
2129 | struct smc91x_platdata *pd = pdev->dev.platform_data; | 2131 | struct smc91x_platdata *pd = pdev->dev.platform_data; |
2130 | struct smc_local *lp; | 2132 | struct smc_local *lp; |
@@ -2238,7 +2240,7 @@ static int smc_drv_probe(struct platform_device *pdev) | |||
2238 | return ret; | 2240 | return ret; |
2239 | } | 2241 | } |
2240 | 2242 | ||
2241 | static int smc_drv_remove(struct platform_device *pdev) | 2243 | static int __devexit smc_drv_remove(struct platform_device *pdev) |
2242 | { | 2244 | { |
2243 | struct net_device *ndev = platform_get_drvdata(pdev); | 2245 | struct net_device *ndev = platform_get_drvdata(pdev); |
2244 | struct smc_local *lp = netdev_priv(ndev); | 2246 | struct smc_local *lp = netdev_priv(ndev); |
@@ -2303,7 +2305,7 @@ static int smc_drv_resume(struct platform_device *dev) | |||
2303 | 2305 | ||
2304 | static struct platform_driver smc_driver = { | 2306 | static struct platform_driver smc_driver = { |
2305 | .probe = smc_drv_probe, | 2307 | .probe = smc_drv_probe, |
2306 | .remove = smc_drv_remove, | 2308 | .remove = __devexit_p(smc_drv_remove), |
2307 | .suspend = smc_drv_suspend, | 2309 | .suspend = smc_drv_suspend, |
2308 | .resume = smc_drv_resume, | 2310 | .resume = smc_drv_resume, |
2309 | .driver = { | 2311 | .driver = { |