[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1171975120.5884.13.camel@localhost.localdomain>
Date: Tue, 20 Feb 2007 12:38:40 +0000
From: Richard Purdie <rpurdie@...ys.net>
To: Adrian Bunk <bunk@...sta.de>
Cc: linux-kernel@...r.kernel.org
Subject: Re: BACKLIGHT_CLASS_DEVICE=y, SYSFS=n compile error
On Tue, 2007-02-20 at 01:08 +0100, Adrian Bunk wrote:
> CONFIG_BACKLIGHT_CLASS_DEVICE=y, CONFIG_SYSFS=n results int he
> following compile error:
> ...
> LD .tmp_vmlinux1
> drivers/built-in.o: In function `nvidia_bl_exit':
> (.text+0x27d01): undefined reference to `backlight_device_unregister'
> drivers/built-in.o: In function `nvidia_bl_init':
> (.text+0x27e3c): undefined reference to `backlight_device_register'
I've added the patch below to the git backlight tree to resolve this.
Cheers,
Richard
backlight: Remove bogus SYSFS dependency
Remove a bogus SYSFS dependency from the backlight class
Signed-off-by: Richard Purdie <rpurdie@...ys.net>
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index cd2ef0a..f8bc43c 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -4,9 +4,7 @@
menu "Graphics support"
-if SYSFS
- source "drivers/video/backlight/Kconfig"
-endif
+source "drivers/video/backlight/Kconfig"
config FB
tristate "Support for frame buffer devices"
diff --git a/drivers/video/Makefile b/drivers/video/Makefile
index 6801edf..1b79a6f 100644
--- a/drivers/video/Makefile
+++ b/drivers/video/Makefile
@@ -12,7 +12,7 @@ fb-objs := $(fb-y)
obj-$(CONFIG_VT) += console/
obj-$(CONFIG_LOGO) += logo/
-obj-$(CONFIG_SYSFS) += backlight/
+obj-y += backlight/
obj-$(CONFIG_FB_CFB_FILLRECT) += cfbfillrect.o
obj-$(CONFIG_FB_CFB_COPYAREA) += cfbcopyarea.o
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists