mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
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:
parent
e1e04827f7
commit
51e5332e20
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue