summaryrefslogtreecommitdiff
path: root/drivers/staging/most
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>2016-02-18 14:42:11 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-20 23:02:06 (GMT)
commita642bbbb4138568cd85217a328c899a5203b4d20 (patch)
treee98baf33cdf8f8aacd6daf15c829469cb10c6789 /drivers/staging/most
parent3eced21a5afbb0f5d4d723d15d25ac9b1b98318c (diff)
downloadlinux-a642bbbb4138568cd85217a328c899a5203b4d20.tar.xz
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: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most')
-rw-r--r--drivers/staging/most/hdm-dim2/dim2_hdm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/most/hdm-dim2/dim2_hdm.c b/drivers/staging/most/hdm-dim2/dim2_hdm.c
index c9cc9c1..c736310 100644
--- a/drivers/staging/most/hdm-dim2/dim2_hdm.c
+++ b/drivers/staging/most/hdm-dim2/dim2_hdm.c
@@ -753,7 +753,7 @@ static int dim2_probe(struct platform_device *pdev)
ret = platform_get_irq(pdev, 0);
if (ret < 0) {
- pr_err("failed to get irq\n");
+ dev_err(&pdev->dev, "failed to get irq\n");
return -ENODEV;
}
dev->irq_ahb0 = ret;
@@ -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,
"mlb_ahb0", dev);
if (ret) {
- pr_err("failed to request IRQ: %d, err: %d\n",
- dev->irq_ahb0, ret);
+ dev_err(&pdev->dev, "failed to request IRQ: %d, err: %d\n",
+ dev->irq_ahb0, ret);
return ret;
}
#endif