From 51e5332e20a3e1b6069009f4fefbeca06484d550 Mon Sep 17 00:00:00 2001 From: Udipto Goswami Date: Fri, 26 Mar 2021 15:02:17 +0530 Subject: [PATCH] usb: dwc3: Fix typo 'USB_CONFIG' to 'CONFIG_USB' Commit deca2724252f ("USB: Fix compilation errors with host stack disabled") was added for checking if USB_CONFIG was enable only then go for registering the host notifier. However, this should be CONFIG_USB instead of that. Since USB_CONFIG is not defined anywhere it will take it false and the host notifier will never be registered. Fix this by correcting the typo to CONFIG_USB. Change-Id: I99b2224e1973116e3001a5fbb5e1a569bdae2105 Signed-off-by: Udipto Goswami --- drivers/usb/dwc3/dwc3-msm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-msm.c b/drivers/usb/dwc3/dwc3-msm.c index 963df6caf1f7..f3a5d746a25d 100644 --- a/drivers/usb/dwc3/dwc3-msm.c +++ b/drivers/usb/dwc3/dwc3-msm.c @@ -5148,7 +5148,7 @@ static int dwc3_otg_start_host(struct dwc3_msm *mdwc, int on) mdwc->host_nb.notifier_call = dwc3_msm_host_notifier; -#ifdef USB_CONFIG +#ifdef CONFIG_USB usb_register_notify(&mdwc->host_nb); #endif @@ -5250,7 +5250,7 @@ static int dwc3_otg_start_host(struct dwc3_msm *mdwc, int on) dwc3_msm_clear_ssphy_flags(mdwc, PHY_HOST_MODE); dwc3_msm_clear_hsphy_flags(mdwc, PHY_HOST_MODE); dwc3_host_exit(dwc); -#ifdef USB_CONFIG +#ifdef CONFIG_USB usb_unregister_notify(&mdwc->host_nb); #endif