mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 04:34:11 +08:00
media: rc: remove redundant dev_err message
devm_ioremap_resource already contains error message, so remove the redundant dev_err message Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
b48cb35c6a
commit
9e2e4382ec
@ -113,10 +113,8 @@ static int meson_ir_probe(struct platform_device *pdev)
|
||||
|
||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
ir->reg = devm_ioremap_resource(dev, res);
|
||||
if (IS_ERR(ir->reg)) {
|
||||
dev_err(dev, "failed to map registers\n");
|
||||
if (IS_ERR(ir->reg))
|
||||
return PTR_ERR(ir->reg);
|
||||
}
|
||||
|
||||
irq = platform_get_irq(pdev, 0);
|
||||
if (irq < 0) {
|
||||
|
@ -320,10 +320,8 @@ static int mtk_ir_probe(struct platform_device *pdev)
|
||||
|
||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
ir->base = devm_ioremap_resource(dev, res);
|
||||
if (IS_ERR(ir->base)) {
|
||||
dev_err(dev, "failed to map registers\n");
|
||||
if (IS_ERR(ir->base))
|
||||
return PTR_ERR(ir->base);
|
||||
}
|
||||
|
||||
ir->rc = devm_rc_allocate_device(dev, RC_DRIVER_IR_RAW);
|
||||
if (!ir->rc) {
|
||||
|
@ -195,7 +195,6 @@ static int sunxi_ir_probe(struct platform_device *pdev)
|
||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
ir->base = devm_ioremap_resource(dev, res);
|
||||
if (IS_ERR(ir->base)) {
|
||||
dev_err(dev, "failed to map registers\n");
|
||||
ret = PTR_ERR(ir->base);
|
||||
goto exit_clkdisable_clk;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user