* [PATCH] thermal: exynos_tmu: fix wrong error check for mapped memory
@ 2013-08-07 8:31 Naveen Krishna Chatradhi
2013-08-15 7:02 ` Zhang Rui
0 siblings, 1 reply; 3+ messages in thread
From: Naveen Krishna Chatradhi @ 2013-08-07 8:31 UTC (permalink / raw)
To: linux-pm, rui.zhang, eduardo.valentin
Cc: linux-samsung-soc, linux-kernel, amit.daniel, kgene.kim
The error check is checking for a "base" mapped memory base
instead of "base_common". Fixing the same.
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
---
drivers/thermal/samsung/exynos_tmu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c
index ec01dfe..a033dbb 100644
--- a/drivers/thermal/samsung/exynos_tmu.c
+++ b/drivers/thermal/samsung/exynos_tmu.c
@@ -592,7 +592,7 @@ static int exynos_map_dt_data(struct platform_device *pdev)
data->base_common = devm_ioremap(&pdev->dev, res.start,
resource_size(&res));
- if (!data->base) {
+ if (!data->base_common) {
dev_err(&pdev->dev, "Failed to ioremap memory\n");
return -ENOMEM;
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] thermal: exynos_tmu: fix wrong error check for mapped memory
2013-08-07 8:31 [PATCH] thermal: exynos_tmu: fix wrong error check for mapped memory Naveen Krishna Chatradhi
@ 2013-08-15 7:02 ` Zhang Rui
2013-08-15 9:07 ` Naveen Krishna Ch
0 siblings, 1 reply; 3+ messages in thread
From: Zhang Rui @ 2013-08-15 7:02 UTC (permalink / raw)
To: Naveen Krishna Chatradhi
Cc: linux-pm, eduardo.valentin, linux-samsung-soc, linux-kernel,
amit.daniel, kgene.kim
On 三, 2013-08-07 at 14:01 +0530, Naveen Krishna Chatradhi wrote:
> The error check is checking for a "base" mapped memory base
> instead of "base_common". Fixing the same.
>
> Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
applied. Thanks!
BTW, can you rebase the other three exynos patches you submitted?
thanks,
rui
> ---
> drivers/thermal/samsung/exynos_tmu.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c
> index ec01dfe..a033dbb 100644
> --- a/drivers/thermal/samsung/exynos_tmu.c
> +++ b/drivers/thermal/samsung/exynos_tmu.c
> @@ -592,7 +592,7 @@ static int exynos_map_dt_data(struct platform_device *pdev)
>
> data->base_common = devm_ioremap(&pdev->dev, res.start,
> resource_size(&res));
> - if (!data->base) {
> + if (!data->base_common) {
> dev_err(&pdev->dev, "Failed to ioremap memory\n");
> return -ENOMEM;
> }
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] thermal: exynos_tmu: fix wrong error check for mapped memory
2013-08-15 7:02 ` Zhang Rui
@ 2013-08-15 9:07 ` Naveen Krishna Ch
0 siblings, 0 replies; 3+ messages in thread
From: Naveen Krishna Ch @ 2013-08-15 9:07 UTC (permalink / raw)
To: Zhang Rui
Cc: Naveen Krishna Chatradhi, linux-pm, eduardo.valentin,
linux-samsung-soc@vger.kernel.org, linux-kernel, amit.daniel,
Kukjin Kim
On 15 August 2013 12:32, Zhang Rui <rui.zhang@intel.com> wrote:
>
> On 三, 2013-08-07 at 14:01 +0530, Naveen Krishna Chatradhi wrote:
> > The error check is checking for a "base" mapped memory base
> > instead of "base_common". Fixing the same.
> >
> > Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
>
> applied. Thanks!
> BTW, can you rebase the other three exynos patches you submitted?
I mistakenly rebased on the master branch.
Later found the code base is a lot different in the for-next branch.
I've it in my pipe line, Will submit at the soon.
Thanks Rui,
>
> thanks,
> rui
> > ---
> > drivers/thermal/samsung/exynos_tmu.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c
> > index ec01dfe..a033dbb 100644
> > --- a/drivers/thermal/samsung/exynos_tmu.c
> > +++ b/drivers/thermal/samsung/exynos_tmu.c
> > @@ -592,7 +592,7 @@ static int exynos_map_dt_data(struct platform_device *pdev)
> >
> > data->base_common = devm_ioremap(&pdev->dev, res.start,
> > resource_size(&res));
> > - if (!data->base) {
> > + if (!data->base_common) {
> > dev_err(&pdev->dev, "Failed to ioremap memory\n");
> > return -ENOMEM;
> > }
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
Shine bright,
(: Nav :)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-08-15 9:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-07 8:31 [PATCH] thermal: exynos_tmu: fix wrong error check for mapped memory Naveen Krishna Chatradhi
2013-08-15 7:02 ` Zhang Rui
2013-08-15 9:07 ` Naveen Krishna Ch
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).