Commit a642bbbb authored by Amitoj Kaur Chawla's avatar Amitoj Kaur Chawla Committed by Greg Kroah-Hartman

staging: most: hdm-dim2: Replace pr_err with dev_err

Replace pr_err with dev_err when a appropriate device structure is
present.
Signed-off-by: default avatarAmitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3eced21a
...@@ -753,7 +753,7 @@ static int dim2_probe(struct platform_device *pdev) ...@@ -753,7 +753,7 @@ static int dim2_probe(struct platform_device *pdev)
ret = platform_get_irq(pdev, 0); ret = platform_get_irq(pdev, 0);
if (ret < 0) { if (ret < 0) {
pr_err("failed to get irq\n"); dev_err(&pdev->dev, "failed to get irq\n");
return -ENODEV; return -ENODEV;
} }
dev->irq_ahb0 = ret; dev->irq_ahb0 = ret;
...@@ -761,8 +761,8 @@ static int dim2_probe(struct platform_device *pdev) ...@@ -761,8 +761,8 @@ static int dim2_probe(struct platform_device *pdev)
ret = devm_request_irq(&pdev->dev, dev->irq_ahb0, dim2_ahb_isr, 0, ret = devm_request_irq(&pdev->dev, dev->irq_ahb0, dim2_ahb_isr, 0,
"mlb_ahb0", dev); "mlb_ahb0", dev);
if (ret) { if (ret) {
pr_err("failed to request IRQ: %d, err: %d\n", dev_err(&pdev->dev, "failed to request IRQ: %d, err: %d\n",
dev->irq_ahb0, ret); dev->irq_ahb0, ret);
return ret; return ret;
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment