Skip to contentSkip to conversation

atmel-mci.c: use resource size()

PATCH In review H Hartley Sweeten 5 participants 5 messages Dec 14, 2009 – Aug 30, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 atmel-mci.c: use resource size()

Use resource_size().

Cc Haavard Skinnemoen <[email protected]>

---

drivers/mmc/host/atmel-mci.c +1 -1
index fc25586..150242f 100644
@@ -1628,7 +1628,7 @@ static int __init atmci_probe(struct platform_device *pdev)
 	}
 
 	ret = -ENOMEM;
-	host->regs = ioremap(regs->start, regs->end - regs->start + 1);
+	host->regs = ioremap(regs->start, resource_size(regs));
 	if (!host->regs)
 		goto err_ioremap;
  
#2 lore raw

PATCH RESEND 1/1 atmel-mci.c: use resource size()

In reply to H Hartley Sweeten

From: H Hartley Sweeten <[email protected]>
Date: Mon, 14 Dec 2009 14:11:56 -0500

Use resource_size().

[cjb: rebased patch against Linus]
---
 drivers/mmc/host/atmel-mci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mmc/host/atmel-mci.c +1 -1
index 95ef864..1d4e546 100644
@@ -1777,7 +1777,7 @@ static int __init atmci_probe(struct platform_device *pdev)
 	}
 
 	ret = -ENOMEM;
-	host->regs = ioremap(regs->start, regs->end - regs->start + 1);
+	host->regs = ioremap(regs->start, resource_size(regs));
 	if (!host->regs)
 		goto err_ioremap;
 
Signature · 5 lines
1.7.0.1

-- 
Chris Ball   <[email protected]>   <http://printf.net/>
One Laptop Per Child
#3 lore raw

[Adding Nicolas to Cc]

Quoted 35 lines · Chris Ball

From: H Hartley Sweeten <[email protected]>
Date: Mon, 14 Dec 2009 14:11:56 -0500

Use resource_size().

[cjb: rebased patch against Linus]
---
 drivers/mmc/host/atmel-mci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mmc/host/atmel-mci.c +1 -1
index 95ef864..1d4e546 100644
@@ -1777,7 +1777,7 @@ static int __init atmci_probe(struct platform_device *pdev)
 	}
 
 	ret = -ENOMEM;
-	host->regs = ioremap(regs->start, regs->end - regs->start + 1);
+	host->regs = ioremap(regs->start, resource_size(regs));
 	if (!host->regs)
 		goto err_ioremap;
 
Signature · 9 lines
1.7.0.1

-- 
Chris Ball   <[email protected]>   <http://printf.net/>
One Laptop Per Child
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw
In reply to Chris Ball

Le 27/08/2010 21:09, Chris Ball :

Quoted 8 lines

From: H Hartley Sweeten <[email protected]>
Date: Mon, 14 Dec 2009 14:11:56 -0500

Use resource_size().

[cjb: rebased patch against Linus]
Quoted 17 lines
---
 drivers/mmc/host/atmel-mci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mmc/host/atmel-mci.c +1 -1
index 95ef864..1d4e546 100644
@@ -1777,7 +1777,7 @@ static int __init atmci_probe(struct platform_device *pdev)
 	}
 
 	ret = -ENOMEM;
-	host->regs = ioremap(regs->start, regs->end - regs->start + 1);
+	host->regs = ioremap(regs->start, resource_size(regs));
 	if (!host->regs)
 		goto err_ioremap;
 
Signature · 1 line
Nicolas Ferre