Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51e5332e authored by Udipto Goswami's avatar Udipto Goswami
Browse files

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



Commit deca2724 ("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: default avatarUdipto Goswami <ugoswami@codeaurora.org>
parent e1e04827
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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