[PATCH] video/imxfb.c: allow usage without BACKLIGHT_CLASS_DEVICE
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Thu Jul 29 05:11:38 EDT 2010
On Thu, Jul 29, 2010 at 10:42:58AM +0200, Eric Bénard wrote:
> Signed-off-by: Eric Bénard <eric at eukrea.com>
> ---
> drivers/video/imxfb.c | 13 +++++++++++--
> 1 files changed, 11 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/video/imxfb.c b/drivers/video/imxfb.c
> index 43f0639..0c2fb4d 100644
> --- a/drivers/video/imxfb.c
> +++ b/drivers/video/imxfb.c
> @@ -175,7 +175,9 @@ struct imxfb_info {
>
> struct imx_fb_videomode *mode;
> int num_modes;
> +#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE
> struct backlight_device *bl;
> +#endif
I'm always unsure about these .._MODULE symbols. If imxfb and backlight
support both are compiled modular, is backlight support picked up if
#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE is used to guard it?
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
More information about the linux-arm-kernel
mailing list