* [PATCH ] wireless:ath: use resource_size() help function
@ 2011-03-07 7:18 Shan Wei
2011-03-07 7:28 ` Jiri Slaby
0 siblings, 1 reply; 2+ messages in thread
From: Shan Wei @ 2011-03-07 7:18 UTC (permalink / raw)
To: jirislaby, mickflemm, lrodriguez, me, John W. Linville, jmalinen,
vasanth, senthilkumar, linux-wireless, ath5k-devel, ath9k-devel
Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
---
drivers/net/wireless/ath/ath5k/ahb.c | 2 +-
drivers/net/wireless/ath/ath9k/ahb.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/ath/ath5k/ahb.c b/drivers/net/wireless/ath/ath5k/ahb.c
index ae84b86..82324e9 100644
--- a/drivers/net/wireless/ath/ath5k/ahb.c
+++ b/drivers/net/wireless/ath/ath5k/ahb.c
@@ -93,7 +93,7 @@ static int ath_ahb_probe(struct platform_device *pdev)
goto err_out;
}
- mem = ioremap_nocache(res->start, res->end - res->start + 1);
+ mem = ioremap_nocache(res->start, resource_size(res));
if (mem == NULL) {
dev_err(&pdev->dev, "ioremap failed\n");
ret = -ENOMEM;
diff --git a/drivers/net/wireless/ath/ath9k/ahb.c b/drivers/net/wireless/ath/ath9k/ahb.c
index 9936721..9cb0efa 100644
--- a/drivers/net/wireless/ath/ath9k/ahb.c
+++ b/drivers/net/wireless/ath/ath9k/ahb.c
@@ -75,7 +75,7 @@ static int ath_ahb_probe(struct platform_device *pdev)
goto err_out;
}
- mem = ioremap_nocache(res->start, res->end - res->start + 1);
+ mem = ioremap_nocache(res->start, resource_size(res));
if (mem == NULL) {
dev_err(&pdev->dev, "ioremap failed\n");
ret = -ENOMEM;
--
1.6.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH ] wireless:ath: use resource_size() help function
2011-03-07 7:18 [PATCH ] wireless:ath: use resource_size() help function Shan Wei
@ 2011-03-07 7:28 ` Jiri Slaby
0 siblings, 0 replies; 2+ messages in thread
From: Jiri Slaby @ 2011-03-07 7:28 UTC (permalink / raw)
To: Shan Wei
Cc: mickflemm, lrodriguez, me, John W. Linville, jmalinen, vasanth,
senthilkumar, linux-wireless, ath5k-devel, ath9k-devel
On 03/07/2011 08:18 AM, Shan Wei wrote:
>
>
> Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
ACK.
> ---
> drivers/net/wireless/ath/ath5k/ahb.c | 2 +-
> drivers/net/wireless/ath/ath9k/ahb.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath5k/ahb.c b/drivers/net/wireless/ath/ath5k/ahb.c
> index ae84b86..82324e9 100644
> --- a/drivers/net/wireless/ath/ath5k/ahb.c
> +++ b/drivers/net/wireless/ath/ath5k/ahb.c
> @@ -93,7 +93,7 @@ static int ath_ahb_probe(struct platform_device *pdev)
> goto err_out;
> }
>
> - mem = ioremap_nocache(res->start, res->end - res->start + 1);
> + mem = ioremap_nocache(res->start, resource_size(res));
> if (mem == NULL) {
> dev_err(&pdev->dev, "ioremap failed\n");
> ret = -ENOMEM;
> diff --git a/drivers/net/wireless/ath/ath9k/ahb.c b/drivers/net/wireless/ath/ath9k/ahb.c
> index 9936721..9cb0efa 100644
> --- a/drivers/net/wireless/ath/ath9k/ahb.c
> +++ b/drivers/net/wireless/ath/ath9k/ahb.c
> @@ -75,7 +75,7 @@ static int ath_ahb_probe(struct platform_device *pdev)
> goto err_out;
> }
>
> - mem = ioremap_nocache(res->start, res->end - res->start + 1);
> + mem = ioremap_nocache(res->start, resource_size(res));
> if (mem == NULL) {
> dev_err(&pdev->dev, "ioremap failed\n");
> ret = -ENOMEM;
thanks,
--
js
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-07 7:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-07 7:18 [PATCH ] wireless:ath: use resource_size() help function Shan Wei
2011-03-07 7:28 ` Jiri Slaby
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).