Commit 7a9d93e5 authored by Axel Lin's avatar Axel Lin Committed by Greg Kroah-Hartman

USB: isp116x-hcd - use resource_size instead of defining its own resource_len macro

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b5b5c3ac
...@@ -1557,8 +1557,6 @@ static int isp116x_remove(struct platform_device *pdev) ...@@ -1557,8 +1557,6 @@ static int isp116x_remove(struct platform_device *pdev)
return 0; return 0;
} }
#define resource_len(r) (((r)->end - (r)->start) + 1)
static int __devinit isp116x_probe(struct platform_device *pdev) static int __devinit isp116x_probe(struct platform_device *pdev)
{ {
struct usb_hcd *hcd; struct usb_hcd *hcd;
...@@ -1597,7 +1595,7 @@ static int __devinit isp116x_probe(struct platform_device *pdev) ...@@ -1597,7 +1595,7 @@ static int __devinit isp116x_probe(struct platform_device *pdev)
ret = -EBUSY; ret = -EBUSY;
goto err1; goto err1;
} }
addr_reg = ioremap(addr->start, resource_len(addr)); addr_reg = ioremap(addr->start, resource_size(addr));
if (addr_reg == NULL) { if (addr_reg == NULL) {
ret = -ENOMEM; ret = -ENOMEM;
goto err2; goto err2;
...@@ -1606,7 +1604,7 @@ static int __devinit isp116x_probe(struct platform_device *pdev) ...@@ -1606,7 +1604,7 @@ static int __devinit isp116x_probe(struct platform_device *pdev)
ret = -EBUSY; ret = -EBUSY;
goto err3; goto err3;
} }
data_reg = ioremap(data->start, resource_len(data)); data_reg = ioremap(data->start, resource_size(data));
if (data_reg == NULL) { if (data_reg == NULL) {
ret = -ENOMEM; ret = -ENOMEM;
goto err4; goto err4;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment