atmel-mci.c: use resource size()
PATCH 1/1 atmel-mci.c: use resource size()
Use resource_size().
Signed-off-by H Hartley Sweeten <[email protected]>
Cc Haavard Skinnemoen <[email protected]>
---
drivers/mmc/host/atmel-mci.c +1 -1
@@ -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;
Quoted 4 lines · H Hartley Sweeten
Use
resource_size().Signed-off-by H Hartley Sweeten <[email protected]>Cc Haavard Skinnemoen <[email protected]>
PATCH RESEND 1/1 atmel-mci.c: use resource size()
In reply to H Hartley SweetenFrom: H Hartley Sweeten <[email protected]>
Date: Mon, 14 Dec 2009 14:11:56 -0500
Use resource_size().
Signed-off-by H Hartley Sweeten <[email protected]>
[cjb: rebased patch against Linus]
Signed-off-by Chris Ball <[email protected]>
--- drivers/mmc/host/atmel-mci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mmc/host/atmel-mci.c +1 -1
@@ -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
[Adding Nicolas to Cc]
Quoted 35 lines · Chris Ball
From: H Hartley Sweeten <[email protected]>
Date: Mon, 14 Dec 2009 14:11:56 -0500Use
resource_size().Signed-off-by H Hartley Sweeten <[email protected]>[cjb: rebased patch against Linus]Signed-off-by Chris Ball <[email protected]>--- drivers/mmc/host/atmel-mci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/mmc/host/atmel-mci.c +1
-1@@ -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
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 -0500Use
resource_size().Signed-off-by H Hartley Sweeten <[email protected]>[cjb: rebased patch against Linus]Signed-off-by Chris Ball <[email protected]>
Signed-off-by Nicolas Ferre <[email protected]>
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@@ -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