summaryrefslogtreecommitdiff
path: root/drivers/usb/otg/ab5500-usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/otg/ab5500-usb.c')
-rw-r--r--drivers/usb/otg/ab5500-usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/otg/ab5500-usb.c b/drivers/usb/otg/ab5500-usb.c
index 8164ccb4195..b1b3b21b22d 100644
--- a/drivers/usb/otg/ab5500-usb.c
+++ b/drivers/usb/otg/ab5500-usb.c
@@ -530,8 +530,8 @@ static int ab5500_usb_boot_detect(struct ab5500_usb *ab)
*/
if ((!(ab5500_get_turn_on_status() &
(P_ON_KEY1_EVENT | P_ON_KEY2_EVENT))) &&
- (prcmu_get_reset_code() !=
- SW_RESET_CHGONLY_EXIT)) {
+ (prcmu_get_reset_code() ==
+ SW_RESET_COLDSTART)) {
dev_dbg(ab->dev, "USB entered charge only mode");
return 0;
}