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>
This commit is contained in:
parent
cc2712f24e
commit
391719dce5
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue