diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2016-08-11 21:29:44 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2016-08-26 17:41:59 +0200 |
commit | fcebddb9d824dd0242af110fd87e8b8ba70a055c (patch) | |
tree | 57007662da3ae34f8034e84b88b92de22616f88d /arch/arm/mach-omap1/include | |
parent | Linux 4.8-rc1 (diff) | |
download | linux-fcebddb9d824dd0242af110fd87e8b8ba70a055c.tar.xz linux-fcebddb9d824dd0242af110fd87e8b8ba70a055c.zip |
ARM: OMAP1: use IS_ENABLED() instead of checking for built-in or module
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
built-in or as a module, use that macro instead of open coding the same.
Using the macro makes the code more readable by helping abstract away some
of the Kconfig built-in and module enable details.
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/include')
-rw-r--r-- | arch/arm/mach-omap1/include/mach/usb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap1/include/mach/usb.h b/arch/arm/mach-omap1/include/mach/usb.h index 2c263051dc51..a7c5559caef2 100644 --- a/arch/arm/mach-omap1/include/mach/usb.h +++ b/arch/arm/mach-omap1/include/mach/usb.h @@ -12,7 +12,7 @@ void omap_otg_init(struct omap_usb_config *config); -#if defined(CONFIG_USB) || defined(CONFIG_USB_MODULE) +#if IS_ENABLED(CONFIG_USB) void omap1_usb_init(struct omap_usb_config *pdata); #else static inline void omap1_usb_init(struct omap_usb_config *pdata) |