phy: mapphone-mdm6600: return error when timed out powering up
PATCH v3 1/1 phy: mapphone-mdm6600: return error when timed out powering up
From: Kaixu Xia <[email protected]>
The value of variable error is overwritten by the following call devm_request_threaded_irq() in phy_mdm6600_device_power_on(), actually we should return error when timed out powering up.
Reported-by Tosk Robot <[email protected]>
Signed-off-by Kaixu Xia <[email protected]>
--- drivers/phy/motorola/phy-mapphone-mdm6600.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/phy/motorola/phy-mapphone-mdm6600.c +1 -1
@@ -421,8 +421,8 @@ static int phy_mdm6600_device_power_on(struct phy_mdm6600 *ddata)dev_info (ddata->dev,"Powered up OK\n" ); }else { ddata->enabled = false; - error = -ETIMEDOUT ;dev_err (ddata->dev,"Timed out powering up\n" ); +return -ETIMEDOUT ; }/* Reconfigure mode1 GPIO as input for OOB wake */
Signature · 1 line
2.20.0