Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Axel Lin and committed by
Greg Kroah-Hartman
7a9d93e5 b5b5c3ac

+2 -4
+2 -4
drivers/usb/host/isp116x-hcd.c
··· 1557 1557 return 0; 1558 1558 } 1559 1559 1560 - #define resource_len(r) (((r)->end - (r)->start) + 1) 1561 - 1562 1560 static int __devinit isp116x_probe(struct platform_device *pdev) 1563 1561 { 1564 1562 struct usb_hcd *hcd; ··· 1595 1597 ret = -EBUSY; 1596 1598 goto err1; 1597 1599 } 1598 - addr_reg = ioremap(addr->start, resource_len(addr)); 1600 + addr_reg = ioremap(addr->start, resource_size(addr)); 1599 1601 if (addr_reg == NULL) { 1600 1602 ret = -ENOMEM; 1601 1603 goto err2; ··· 1604 1606 ret = -EBUSY; 1605 1607 goto err3; 1606 1608 } 1607 - data_reg = ioremap(data->start, resource_len(data)); 1609 + data_reg = ioremap(data->start, resource_size(data)); 1608 1610 if (data_reg == NULL) { 1609 1611 ret = -ENOMEM; 1610 1612 goto err4;