linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eduardo Valentin <eduardo.valentin@ti.com>
To: Sachin Kamat <sachin.kamat@linaro.org>
Cc: linux-pm@vger.kernel.org, eduardo.valentin@ti.com,
	rui.zhang@intel.com, Vincenzo Frascino <vincenzo.frascino@st.com>,
	Viresh Kumar <viresh.kumar@linaro.org>
Subject: Re: [PATCH 1/1] Thermal: spear: Fix compilation error
Date: Thu, 23 May 2013 11:10:02 -0400	[thread overview]
Message-ID: <519E314A.80401@ti.com> (raw)
In-Reply-To: <1369128041-23403-1-git-send-email-sachin.kamat@linaro.org>

[-- Attachment #1: Type: text/plain, Size: 1795 bytes --]

On 21-05-2013 05:20, Sachin Kamat wrote:
> Fixes the following compilation error introduced by commit 253e3ae170
> (Thermal: spear_thermal: convert to devm_ioremap_resource).
> drivers/thermal/spear_thermal.c: In function ‘spear_thermal_probe’:
> drivers/thermal/spear_thermal.c:123:46: error: ‘dev’ undeclared
> (first use in this function)
> stdev->thermal_base = devm_ioremap_resource(dev, res);
> 
> While at it also remove the error message as devm_ioremap_resource()
> provides its own error messages.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> Cc: Vincenzo Frascino <vincenzo.frascino@st.com>
> Cc: Viresh Kumar <viresh.kumar@linaro.org>

Acked-by: Eduardo Valentin <eduardo.valentin@ti.com>

> ---
> Compile tested and based on linux-next (20130521).

Also compiled tested on same linux-next.

Tested-by: Eduardo Valentin <eduardo.valentin@ti.com>

> ---
>  drivers/thermal/spear_thermal.c |    6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/thermal/spear_thermal.c b/drivers/thermal/spear_thermal.c
> index fa30918..813add6 100644
> --- a/drivers/thermal/spear_thermal.c
> +++ b/drivers/thermal/spear_thermal.c
> @@ -120,11 +120,9 @@ static int spear_thermal_probe(struct platform_device *pdev)
>  
>  	/* Enable thermal sensor */
>  	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> -	stdev->thermal_base = devm_ioremap_resource(dev, res);
> -	if (IS_ERR(stdev->thermal_base)) {
> -		dev_err(&pdev->dev, "ioremap failed\n");
> +	stdev->thermal_base = devm_ioremap_resource(&pdev->dev, res);
> +	if (IS_ERR(stdev->thermal_base))
>  		return PTR_ERR(stdev->thermal_base);
> -	}
>  
>  	stdev->clk = devm_clk_get(&pdev->dev, NULL);
>  	if (IS_ERR(stdev->clk)) {
> 



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 295 bytes --]

  parent reply	other threads:[~2013-05-23 15:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-21  9:20 [PATCH 1/1] Thermal: spear: Fix compilation error Sachin Kamat
2013-05-21  9:35 ` Viresh Kumar
2013-05-23 15:10 ` Eduardo Valentin [this message]
2013-05-28  2:13   ` Zhang Rui

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=519E314A.80401@ti.com \
    --to=eduardo.valentin@ti.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=rui.zhang@intel.com \
    --cc=sachin.kamat@linaro.org \
    --cc=vincenzo.frascino@st.com \
    --cc=viresh.kumar@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).