dw_dmac: print message if IO resource is not found
PATCH 1/1 dw_dmac: print message if IO resource is not found
devm_ioremap_resource() will print a message if resource is not found.
Signed-off-by Andy Shevchenko <[email protected]>
--- drivers/dma/dw_dmac.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/dma/dw_dmac.c +1 -4
@@ -1667,14 +1667,11 @@ static int dw_probe(struct platform_device *pdev)int err;int i; - io =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); -if (!io) -return -EINVAL ; - irq =platform_get_irq (pdev,0 );if (irq <0 )return irq; + io =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); regs =devm_ioremap_resource (&pdev->dev, io);if (IS_ERR (regs))return PTR_ERR (regs);
Signature · 1 line
1.8.2.rc0.22.gb3600c3
Quoted 6 lines · Andy Shevchenko
devm_ioremap_resource()will print a message if resource is not found.Signed-off-by Andy Shevchenko <[email protected]>--- drivers/dma/dw_dmac.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
Log and subject should be something like this.