public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] PM / AVS: SmartReflex: remove redundant dev_err call in omap_sr_probe()
@ 2013-06-26  1:57 Wei Yongjun
  2013-06-26 13:06 ` Nishanth Menon
  2013-06-29  1:42 ` [PATCH -next] " Anton Vorontsov
  0 siblings, 2 replies; 5+ messages in thread
From: Wei Yongjun @ 2013-06-26  1:57 UTC (permalink / raw)
  To: anton, dwmw2, khilman, andrii.tseglytskyi, nm, jean.pihet, tony
  Cc: yongjun_wei, linux-kernel

From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
 drivers/power/avs/smartreflex.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/power/avs/smartreflex.c b/drivers/power/avs/smartreflex.c
index db9973b..c26acfc 100644
--- a/drivers/power/avs/smartreflex.c
+++ b/drivers/power/avs/smartreflex.c
@@ -871,10 +871,8 @@ static int __init omap_sr_probe(struct platform_device *pdev)
 
 	mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	sr_info->base = devm_ioremap_resource(&pdev->dev, mem);
-	if (IS_ERR(sr_info->base)) {
-		dev_err(&pdev->dev, "%s: ioremap fail\n", __func__);
+	if (IS_ERR(sr_info->base))
 		return PTR_ERR(sr_info->base);
-	}
 
 	irq = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
 


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

end of thread, other threads:[~2013-08-05 16:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-26  1:57 [PATCH -next] PM / AVS: SmartReflex: remove redundant dev_err call in omap_sr_probe() Wei Yongjun
2013-06-26 13:06 ` Nishanth Menon
     [not found]   ` <877gh8nbpm.fsf@linaro.org>
2013-07-12  4:59     ` [PATCH RESEND] " Wei Yongjun
2013-08-05 16:25       ` Kevin Hilman
2013-06-29  1:42 ` [PATCH -next] " Anton Vorontsov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox