mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/ide/tx4938ide.c: use resource_size()
@ 2009-11-23 18:27 H Hartley Sweeten
  2009-11-23 18:31 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: H Hartley Sweeten @ 2009-11-23 18:27 UTC (permalink / raw)
  To: linux-kernel, linux-ide

Use resource_size() for devm_request_mem_region.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>

---

diff --git a/drivers/ide/tx4938ide.c b/drivers/ide/tx4938ide.c
index ea89fdd..fd59c0d 100644
--- a/drivers/ide/tx4938ide.c
+++ b/drivers/ide/tx4938ide.c
@@ -146,7 +146,7 @@ static int __init tx4938ide_probe(struct platform_device *pdev)
 		return -ENODEV;
 
 	if (!devm_request_mem_region(&pdev->dev, res->start,
-				     res->end - res->start + 1, "tx4938ide"))
+				     resource_size(res), "tx4938ide"))
 		return -EBUSY;
 	mapbase = (unsigned long)devm_ioremap(&pdev->dev, res->start,
 					      8 << pdata->ioport_shift); 

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

* Re: drivers/ide/tx4938ide.c: use resource_size()
  2009-11-23 18:27 drivers/ide/tx4938ide.c: use resource_size() H Hartley Sweeten
@ 2009-11-23 18:31 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-11-23 18:31 UTC (permalink / raw)
  To: hartleys; +Cc: linux-kernel, linux-ide

From: "H Hartley Sweeten" <hartleys@visionengravers.com>
Date: Mon, 23 Nov 2009 13:27:23 -0500

> Use resource_size() for devm_request_mem_region.
> 
> Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>

Applied to ide-next-2.6

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

end of thread, other threads:[~2009-11-23 18:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-23 18:27 drivers/ide/tx4938ide.c: use resource_size() H Hartley Sweeten
2009-11-23 18:31 ` David Miller

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

all inboxes | Powered by JetHome®