usb: dwc3: Fix typo 'USB_CONFIG' to 'CONFIG_USB'

Commit deca272425 ("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 <ugoswami@codeaurora.org>
This commit is contained in:
Udipto Goswami 2021-03-26 15:02:17 +05:30
commit 51e5332e20

View file

@ -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