linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] thermal: amlogic: Omit superfluous error message in amlogic_thermal_probe()
@ 2021-02-22  6:11 Tang Bin
  2021-03-17 12:39 ` [thermal: thermal/next] " thermal-bot for Tang Bin
  2021-04-07  8:51 ` [PATCH] " Neil Armstrong
  0 siblings, 2 replies; 3+ messages in thread
From: Tang Bin @ 2021-02-22  6:11 UTC (permalink / raw)
  To: glaroque, rui.zhang, daniel.lezcano, amitk
  Cc: linux-pm, linux-amlogic, linux-kernel, Tang Bin

The function devm_platform_ioremap_resource has already contains error
message, so remove the redundant dev_err here.

Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
---
 drivers/thermal/amlogic_thermal.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/thermal/amlogic_thermal.c b/drivers/thermal/amlogic_thermal.c
index ccb1fe18e..bba9f3b14 100644
--- a/drivers/thermal/amlogic_thermal.c
+++ b/drivers/thermal/amlogic_thermal.c
@@ -253,10 +253,8 @@ static int amlogic_thermal_probe(struct platform_device *pdev)
 	platform_set_drvdata(pdev, pdata);
 
 	base = devm_platform_ioremap_resource(pdev, 0);
-	if (IS_ERR(base)) {
-		dev_err(dev, "failed to get io address\n");
+	if (IS_ERR(base))
 		return PTR_ERR(base);
-	}
 
 	pdata->regmap = devm_regmap_init_mmio(dev, base,
 					      pdata->data->regmap_config);
-- 
2.20.1.windows.1




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [thermal: thermal/next] thermal: amlogic: Omit superfluous error message in amlogic_thermal_probe()
  2021-02-22  6:11 [PATCH] thermal: amlogic: Omit superfluous error message in amlogic_thermal_probe() Tang Bin
@ 2021-03-17 12:39 ` thermal-bot for Tang Bin
  2021-04-07  8:51 ` [PATCH] " Neil Armstrong
  1 sibling, 0 replies; 3+ messages in thread
From: thermal-bot for Tang Bin @ 2021-03-17 12:39 UTC (permalink / raw)
  To: linux-pm; +Cc: Tang Bin, Daniel Lezcano, rui.zhang, amitk

The following commit has been merged into the thermal/next branch of thermal:

Commit-ID:     e042e95bcab34b2265b0aaeb497030ea13c6c251
Gitweb:        https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git//e042e95bcab34b2265b0aaeb497030ea13c6c251
Author:        Tang Bin <tangbin@cmss.chinamobile.com>
AuthorDate:    Mon, 22 Feb 2021 14:11:05 +08:00
Committer:     Daniel Lezcano <daniel.lezcano@linaro.org>
CommitterDate: Wed, 10 Mar 2021 12:52:55 +01:00

thermal: amlogic: Omit superfluous error message in amlogic_thermal_probe()

The function devm_platform_ioremap_resource has already contains error
message, so remove the redundant dev_err here.

Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210222061105.6008-1-tangbin@cmss.chinamobile.com
---
 drivers/thermal/amlogic_thermal.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/thermal/amlogic_thermal.c b/drivers/thermal/amlogic_thermal.c
index dffe3ba..e61b91d 100644
--- a/drivers/thermal/amlogic_thermal.c
+++ b/drivers/thermal/amlogic_thermal.c
@@ -254,10 +254,8 @@ static int amlogic_thermal_probe(struct platform_device *pdev)
 	platform_set_drvdata(pdev, pdata);
 
 	base = devm_platform_ioremap_resource(pdev, 0);
-	if (IS_ERR(base)) {
-		dev_err(dev, "failed to get io address\n");
+	if (IS_ERR(base))
 		return PTR_ERR(base);
-	}
 
 	pdata->regmap = devm_regmap_init_mmio(dev, base,
 					      pdata->data->regmap_config);

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] thermal: amlogic: Omit superfluous error message in amlogic_thermal_probe()
  2021-02-22  6:11 [PATCH] thermal: amlogic: Omit superfluous error message in amlogic_thermal_probe() Tang Bin
  2021-03-17 12:39 ` [thermal: thermal/next] " thermal-bot for Tang Bin
@ 2021-04-07  8:51 ` Neil Armstrong
  1 sibling, 0 replies; 3+ messages in thread
From: Neil Armstrong @ 2021-04-07  8:51 UTC (permalink / raw)
  To: Tang Bin, glaroque, rui.zhang, daniel.lezcano, amitk
  Cc: linux-amlogic, linux-kernel, linux-pm

On 22/02/2021 07:11, Tang Bin wrote:
> The function devm_platform_ioremap_resource has already contains error
> message, so remove the redundant dev_err here.
> 
> Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
> ---
>  drivers/thermal/amlogic_thermal.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/drivers/thermal/amlogic_thermal.c b/drivers/thermal/amlogic_thermal.c
> index ccb1fe18e..bba9f3b14 100644
> --- a/drivers/thermal/amlogic_thermal.c
> +++ b/drivers/thermal/amlogic_thermal.c
> @@ -253,10 +253,8 @@ static int amlogic_thermal_probe(struct platform_device *pdev)
>  	platform_set_drvdata(pdev, pdata);
>  
>  	base = devm_platform_ioremap_resource(pdev, 0);
> -	if (IS_ERR(base)) {
> -		dev_err(dev, "failed to get io address\n");
> +	if (IS_ERR(base))
>  		return PTR_ERR(base);
> -	}
>  
>  	pdata->regmap = devm_regmap_init_mmio(dev, base,
>  					      pdata->data->regmap_config);
> 

Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-07  8:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-22  6:11 [PATCH] thermal: amlogic: Omit superfluous error message in amlogic_thermal_probe() Tang Bin
2021-03-17 12:39 ` [thermal: thermal/next] " thermal-bot for Tang Bin
2021-04-07  8:51 ` [PATCH] " Neil Armstrong

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).