diff options
author | Paul Bolle <pebolle@tiscali.nl> | 2014-05-16 06:00:57 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2014-05-16 17:14:25 -0400 |
commit | 77c2f02edbeda9409a7cf3fd66233015820c213a (patch) | |
tree | 2e451b546845e43ddf1800b9e24b147990c395af /drivers/usb/phy/phy-isp1301-omap.c | |
parent | 4513c3b8c4370d795d9856f7589c64cd216772ab (diff) |
ARM: OMAP: replace checks for CONFIG_USB_GADGET_OMAP
Commit 193ab2a60700 ("usb: gadget: allow multiple gadgets to be built")
apparently required that checks for CONFIG_USB_GADGET_OMAP would be
replaced with checks for CONFIG_USB_OMAP. Do so now for the remaining
checks for CONFIG_USB_GADGET_OMAP, even though these checks have
basically been broken since v3.1.
And, since we're touching this code, use the IS_ENABLED() macro, so
things will now (hopefully) also work if USB_OMAP is modular.
Fixes: 193ab2a60700 ("usb: gadget: allow multiple gadgets to be built")
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'drivers/usb/phy/phy-isp1301-omap.c')
-rw-r--r-- | drivers/usb/phy/phy-isp1301-omap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy-isp1301-omap.c b/drivers/usb/phy/phy-isp1301-omap.c index 6e146d723b37..69e49be8866b 100644 --- a/drivers/usb/phy/phy-isp1301-omap.c +++ b/drivers/usb/phy/phy-isp1301-omap.c | |||
@@ -1295,7 +1295,7 @@ isp1301_set_host(struct usb_otg *otg, struct usb_bus *host) | |||
1295 | return isp1301_otg_enable(isp); | 1295 | return isp1301_otg_enable(isp); |
1296 | return 0; | 1296 | return 0; |
1297 | 1297 | ||
1298 | #elif !defined(CONFIG_USB_GADGET_OMAP) | 1298 | #elif !IS_ENABLED(CONFIG_USB_OMAP) |
1299 | // FIXME update its refcount | 1299 | // FIXME update its refcount |
1300 | otg->host = host; | 1300 | otg->host = host; |
1301 | 1301 | ||