aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2013-07-23 14:01:45 -0400
committerDavid S. Miller <davem@davemloft.net>2013-07-25 02:59:33 -0400
commit9025c8e253369d324111c041032018955b80dd55 (patch)
treed556ccbc2aa27e0fe2f73467cc808dd47722532a /drivers/net
parent18afa4b028b46f8b45ca64f94aefe717c297b07d (diff)
drivers/net/ethernet/stmicro/stmmac: don't check resource with devm_ioremap_resource
devm_ioremap_resource does sanity checks on the given resource. No need to duplicate this in the driver. Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
index 03de76c7a177..da8be6e63096 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
@@ -109,9 +109,6 @@ static int stmmac_pltfr_probe(struct platform_device *pdev)
109 const char *mac = NULL; 109 const char *mac = NULL;
110 110
111 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 111 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
112 if (!res)
113 return -ENODEV;
114
115 addr = devm_ioremap_resource(dev, res); 112 addr = devm_ioremap_resource(dev, res);
116 if (IS_ERR(addr)) 113 if (IS_ERR(addr))
117 return PTR_ERR(addr); 114 return PTR_ERR(addr);