aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/dm9000.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c
index 60de17689e64..31b8bef49d2e 100644
--- a/drivers/net/dm9000.c
+++ b/drivers/net/dm9000.c
@@ -1251,8 +1251,6 @@ static const struct net_device_ops dm9000_netdev_ops = {
1251#endif 1251#endif
1252}; 1252};
1253 1253
1254#define res_size(_r) (((_r)->end - (_r)->start) + 1)
1255
1256/* 1254/*
1257 * Search DM9000 board, allocate space and register it 1255 * Search DM9000 board, allocate space and register it
1258 */ 1256 */
@@ -1301,7 +1299,7 @@ dm9000_probe(struct platform_device *pdev)
1301 goto out; 1299 goto out;
1302 } 1300 }
1303 1301
1304 iosize = res_size(db->addr_res); 1302 iosize = resource_size(db->addr_res);
1305 db->addr_req = request_mem_region(db->addr_res->start, iosize, 1303 db->addr_req = request_mem_region(db->addr_res->start, iosize,
1306 pdev->name); 1304 pdev->name);
1307 1305
@@ -1319,7 +1317,7 @@ dm9000_probe(struct platform_device *pdev)
1319 goto out; 1317 goto out;
1320 } 1318 }
1321 1319
1322 iosize = res_size(db->data_res); 1320 iosize = resource_size(db->data_res);
1323 db->data_req = request_mem_region(db->data_res->start, iosize, 1321 db->data_req = request_mem_region(db->data_res->start, iosize,
1324 pdev->name); 1322 pdev->name);
1325 1323