summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@osg.samsung.com>2016-07-11 16:44:37 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-08-11 17:54:56 +0300
commit53d73a0adc818d6a72168c7cc33dd2a45735131a (patch)
treecda3606a8aaa9cac882460687640f82e45534bc4
parentd50b3f43db739f03fcf8c0a00664b3d2fed0496e (diff)
downloadop-kernel-dev-53d73a0adc818d6a72168c7cc33dd2a45735131a.zip
op-kernel-dev-53d73a0adc818d6a72168c7cc33dd2a45735131a.tar.gz
fb: adv7393: 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. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--drivers/video/fbdev/bfin_adv7393fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/bfin_adv7393fb.c b/drivers/video/fbdev/bfin_adv7393fb.c
index e2d7d03..2b7cd30 100644
--- a/drivers/video/fbdev/bfin_adv7393fb.c
+++ b/drivers/video/fbdev/bfin_adv7393fb.c
@@ -797,7 +797,7 @@ static struct i2c_driver bfin_adv7393_fb_driver = {
static int __init bfin_adv7393_fb_driver_init(void)
{
-#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
+#if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI)
request_module("i2c-bfin-twi");
#else
request_module("i2c-gpio");
OpenPOWER on IntegriCloud