public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] USB: isp116x-hcd - use resource_size instead of defining its own resource_len macro
@ 2010-10-15  5:26 Axel Lin
  2010-10-15  5:27 ` [PATCH 2/3] USB: isp1362-hcd " Axel Lin
  2010-10-15  5:29 ` [PATCH 3/3] USB: ohci-sh " Axel Lin
  0 siblings, 2 replies; 5+ messages in thread
From: Axel Lin @ 2010-10-15  5:26 UTC (permalink / raw)
  To: linux-kernel; +Cc: Olav Kongas, Greg Kroah-Hartman, linux-usb

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/usb/host/isp116x-hcd.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/usb/host/isp116x-hcd.c b/drivers/usb/host/isp116x-hcd.c
index d9e8212..0da7fc0 100644
--- a/drivers/usb/host/isp116x-hcd.c
+++ b/drivers/usb/host/isp116x-hcd.c
@@ -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;
-- 
1.7.2




^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-10-15  7:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-15  5:26 [PATCH 1/3] USB: isp116x-hcd - use resource_size instead of defining its own resource_len macro Axel Lin
2010-10-15  5:27 ` [PATCH 2/3] USB: isp1362-hcd " Axel Lin
2010-10-15  5:43   ` Mike Frysinger
2010-10-15  5:29 ` [PATCH 3/3] USB: ohci-sh " Axel Lin
2010-10-15  7:58   ` Yoshihiro Shimoda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox