Commit 53d73a0a authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Tomi Valkeinen

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: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent d50b3f43
...@@ -797,7 +797,7 @@ static struct i2c_driver bfin_adv7393_fb_driver = { ...@@ -797,7 +797,7 @@ static struct i2c_driver bfin_adv7393_fb_driver = {
static int __init bfin_adv7393_fb_driver_init(void) 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"); request_module("i2c-bfin-twi");
#else #else
request_module("i2c-gpio"); request_module("i2c-gpio");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment