mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 02:34:01 +08:00
USB: isp116x-hcd - use resource_size instead of defining its own resource_len macro
Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
b5b5c3ac51
commit
7a9d93e585
@ -1557,8 +1557,6 @@ static int isp116x_remove(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define resource_len(r) (((r)->end - (r)->start) + 1)
|
||||
|
||||
static int __devinit isp116x_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct usb_hcd *hcd;
|
||||
@ -1597,7 +1595,7 @@ static int __devinit isp116x_probe(struct platform_device *pdev)
|
||||
ret = -EBUSY;
|
||||
goto err1;
|
||||
}
|
||||
addr_reg = ioremap(addr->start, resource_len(addr));
|
||||
addr_reg = ioremap(addr->start, resource_size(addr));
|
||||
if (addr_reg == NULL) {
|
||||
ret = -ENOMEM;
|
||||
goto err2;
|
||||
@ -1606,7 +1604,7 @@ static int __devinit isp116x_probe(struct platform_device *pdev)
|
||||
ret = -EBUSY;
|
||||
goto err3;
|
||||
}
|
||||
data_reg = ioremap(data->start, resource_len(data));
|
||||
data_reg = ioremap(data->start, resource_size(data));
|
||||
if (data_reg == NULL) {
|
||||
ret = -ENOMEM;
|
||||
goto err4;
|
||||
|
Loading…
Reference in New Issue
Block a user