]> git.baikalelectronics.ru Git - kernel.git/commit
[media] msp3400: use IS_ENABLED check instead of #if
authorArnd Bergmann <arnd@arndb.de>
Tue, 2 Feb 2016 15:47:58 +0000 (13:47 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 2 Feb 2016 16:28:56 +0000 (14:28 -0200)
commit162f7956d73624300a42fb63efdb5443cfc00766
treea32f888068e7efc72b2b5e5cb15ff1846fa2a6c7
parentd3fbe2d321330b0312e2ca05ef63f542cfe40f5f
[media] msp3400: use IS_ENABLED check instead of #if

A recent patch broke the msp3400 driver when CONFIG_MEDIA_CONTROLLER
is not set:

drivers/media/i2c/msp3400-driver.h:107:5: error: "CONFIG_MEDIA_CONTROLLER" is not defined [-Werror=undef]

It was clearly a typo, and this patch changes the
"#if CONFIG_MEDIA_CONTROLLER" to a working IS_ENABLED() check.

Fixes: 27c189eed1f7 ("[media] msp3400: initialize MC data")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/msp3400-driver.h