usb: typec: tcpci_mt6370: remove redundant dev_err_probe()
Subsystems (3)
PATCH 1/1 usb: typec: tcpci_mt6370: remove redundant dev_err_probe()
When platform_get_irq() is called, the error message has been printed, so it need not to call dev_err_probe() to present error messages.
Signed-off-by Zhu Wang <[email protected]>
--- drivers/usb/typec/tcpm/tcpci_mt6370.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/typec/tcpm/tcpci_mt6370.c +1 -1
@@ -147,7 +147,7 @@ static int mt6370_tcpc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) -return dev_err_probe (dev, irq,"Failed to get irq\n" ); +return irq;/* Assign TCPCI feature and ops */ priv->tcpci_data.auto_discharge_disconnect =1 ;
Signature · 1 line
2.17.1
Il 01/08/23 14:28, Zhu Wang ha scritto:
Quoted 4 lines
When
platform_get_irq()is called, the error message has been printed, so it need not to calldev_err_probe()to present error messages.Signed-off-by Zhu Wang <[email protected]>
Reviewed-by AngeloGioacchino Del Regno <[email protected]>
Quoted 4 lines · Zhu Wang
When
platform_get_irq()is called, the error message has been printed, so it need not to calldev_err_probe()to present error messages.Signed-off-by Zhu Wang <[email protected]>
Reviewed-by Guenter Roeck <[email protected]>
Quoted 17 lines
--- drivers/usb/typec/tcpm/tcpci_mt6370.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/usb/typec/tcpm/tcpci_mt6370.c +1
-1@@ -147,7 +147,7 @@ static int mt6370_tcpc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) -return dev_err_probe (dev, irq,"Failed to get irq\n" ); +return irq;/* Assign TCPCI feature and ops */ priv->tcpci_data.auto_discharge_disconnect =1 ;
Quoted 4 lines · Zhu Wang
When
platform_get_irq()is called, the error message has been printed, so it need not to calldev_err_probe()to present error messages.Signed-off-by Zhu Wang <[email protected]>
Acked-by Heikki Krogerus <[email protected]>
Quoted 19 lines
--- drivers/usb/typec/tcpm/tcpci_mt6370.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/usb/typec/tcpm/tcpci_mt6370.c +1
-1@@ -147,7 +147,7 @@ static int mt6370_tcpc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq <0 ) -return dev_err_probe (dev, irq,"Failed to get irq\n" ); +return irq;/* Assign TCPCI feature and ops */ priv->tcpci_data.auto_discharge_disconnect =1 ;Signature · 1 line
2.17.1
Signature · 1 line
heikki