]> git.baikalelectronics.ru Git - kernel.git/commit
video: sh_mobile_lcdcfb depends on meram
authorArnd Bergmann <arnd@arndb.de>
Thu, 24 Apr 2014 12:28:17 +0000 (13:28 +0100)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 7 May 2014 09:16:33 +0000 (12:16 +0300)
commita565edbc4c12694cb60577aa029af6dd9478cc74
treea42a9109c80df38e4018eb384db4243718a547b4
parentd692eeddfbc1cb923fb08070393b5660dcfc3370
video: sh_mobile_lcdcfb depends on meram

The sh_mobile_lcdcfb driver calls interfaces provided
by the corresponding "meram" helper. This fails if meram
is a module but lcdcfb is built-in.

To work around it, this uses special Kconfig magic to
only allow lcdcfb to be built if
a) both are modules,
b) meram is built-in, or
c) meram is disabled and the helpers stubbed out

Changing meram from 'y' to 'm' now forces clcd to
be a module as well, which seems to be the desired
behavior.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Cc: Simon Horman <horms+renesas@verge.net.au>
Cc: Magnus Damm <magnus.damm@gmail.com>
Cc: linux-sh@vger.kernel.org
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/Kconfig