diff options
Diffstat (limited to 'drivers/net/smc91x.c')
-rw-r--r-- | drivers/net/smc91x.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/smc91x.c b/drivers/net/smc91x.c index 2ca301d71902..5879c719b538 100644 --- a/drivers/net/smc91x.c +++ b/drivers/net/smc91x.c | |||
@@ -2058,6 +2058,7 @@ static int smc_request_attrib(struct platform_device *pdev, | |||
2058 | struct net_device *ndev) | 2058 | struct net_device *ndev) |
2059 | { | 2059 | { |
2060 | struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib"); | 2060 | struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib"); |
2061 | struct smc_local *lp __maybe_unused = netdev_priv(ndev); | ||
2061 | 2062 | ||
2062 | if (!res) | 2063 | if (!res) |
2063 | return 0; | 2064 | return 0; |
@@ -2072,6 +2073,7 @@ static void smc_release_attrib(struct platform_device *pdev, | |||
2072 | struct net_device *ndev) | 2073 | struct net_device *ndev) |
2073 | { | 2074 | { |
2074 | struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib"); | 2075 | struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib"); |
2076 | struct smc_local *lp __maybe_unused = netdev_priv(ndev); | ||
2075 | 2077 | ||
2076 | if (res) | 2078 | if (res) |
2077 | release_mem_region(res->start, ATTRIB_SIZE); | 2079 | release_mem_region(res->start, ATTRIB_SIZE); |