summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorTang Bin <tangbin@cmss.chinamobile.com>2021-07-20 17:15:39 +0300
committerSebastian Reichel <sre@kernel.org>2021-08-07 00:36:12 +0300
commit391719dce5ebd416347f35d7a136feb6a04cecb8 (patch)
treec9597ea891be753173946e67f03acdf50a012133 /drivers/power
parentcc2712f24e032f2bebf4355207638bf15ca676b5 (diff)
downloadlinux-391719dce5ebd416347f35d7a136feb6a04cecb8.tar.xz
power: supply: qcom_smbb: Remove superfluous error message
In the probe function, when get irq failed, the function platform_get_irq_byname() logs an error message, so remove redundant message here. Co-developed-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com> Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com> Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/qcom_smbb.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/power/supply/qcom_smbb.c b/drivers/power/supply/qcom_smbb.c
index c890e1cec720..84cc9fba029d 100644
--- a/drivers/power/supply/qcom_smbb.c
+++ b/drivers/power/supply/qcom_smbb.c
@@ -929,11 +929,8 @@ static int smbb_charger_probe(struct platform_device *pdev)
int irq;
irq = platform_get_irq_byname(pdev, smbb_charger_irqs[i].name);
- if (irq < 0) {
- dev_err(&pdev->dev, "failed to get irq '%s'\n",
- smbb_charger_irqs[i].name);
+ if (irq < 0)
return irq;
- }
smbb_charger_irqs[i].handler(irq, chg);