* [PATCH -next] ASoC: sunxi: remove redundant dev_err call in sun4i_i2s_probe()
@ 2016-07-04 15:08 weiyj_lk
0 siblings, 0 replies; only message in thread
From: weiyj_lk @ 2016-07-04 15:08 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
Maxime Ripard, Chen-Yu Tsai
Cc: Wei Yongjun, alsa-devel, linux-arm-kernel, 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>
---
sound/soc/sunxi/sun4i-i2s.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c
index fab5234..687a8f8 100644
--- a/sound/soc/sunxi/sun4i-i2s.c
+++ b/sound/soc/sunxi/sun4i-i2s.c
@@ -599,10 +599,8 @@ static int sun4i_i2s_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
regs = devm_ioremap_resource(&pdev->dev, res);
- if (IS_ERR(regs)) {
- dev_err(&pdev->dev, "Can't request IO region\n");
+ if (IS_ERR(regs))
return PTR_ERR(regs);
- }
irq = platform_get_irq(pdev, 0);
if (irq < 0) {
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-07-04 15:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-04 15:08 [PATCH -next] ASoC: sunxi: remove redundant dev_err call in sun4i_i2s_probe() weiyj_lk
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).