mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
phy: cpcap-usb: Fix missing return statement
Commit 8ae904e3c236 ("phy: cpcap-usb: Add CPCAP PMIC USB support")
is missing return statement as noted by Colin Ian King
<[email protected]>. If the optional pins are not configured,
we just want to return early and not attempt to configure the pins.
Fixes: 8ae904e3c236 ("phy: cpcap-usb: Add CPCAP PMIC USB support")
Reported-by: Colin Ian King <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
Signed-off-by: Kishon Vijay Abraham I <[email protected]>
This commit is contained in:
parent
787f24543c
commit
259a24001a
1 changed files with 2 additions and 0 deletions
|
|
@ -468,6 +468,8 @@ static int cpcap_usb_init_optional_pins(struct cpcap_phy_ddata *ddata)
|
|||
dev_info(ddata->dev, "default pins not configured: %ld\n",
|
||||
PTR_ERR(ddata->pins));
|
||||
ddata->pins = NULL;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
ddata->pins_ulpi = pinctrl_lookup_state(ddata->pins, "ulpi");
|
||||
|
|
|
|||
Loading…
Reference in a new issue