linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Antonino A. Daplas" <adaplas@hotpop.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Linux Fbdev development list
	<linux-fbdev-devel@lists.sourceforge.net>,
	Andrew Zabolotny <zap@homelink.ru>
Subject: [PATCH 5/6] backlight: Fix compile error if CONFIG_FB is unset
Date: Tue, 18 Jan 2005 05:41:21 +0800	[thread overview]
Message-ID: <200501180541.21349.adaplas@hotpop.com> (raw)

   LD      init/built-in.o
    LD      .tmp_vmlinux1
  drivers/built-in.o(.text+0x9bfa): In function `lcd_device_register':
  : undefined reference to `fb_register_client'
  drivers/built-in.o(.text+0x9ce3): In function `lcd_device_unregister':
  : undefined reference to `fb_unregister_client'
  drivers/built-in.o(.text+0xa16a): In function `backlight_device_register':
  : undefined reference to `fb_register_client'
  drivers/built-in.o(.text+0xa253): In function `backlight_device_unregister':
  : undefined reference to `fb_unregister_client'
  make: *** [.tmp_vmlinux1] Error 1

  Fix from Andrew Zabolotny <zap@homelink.ru>

Signed-off-by: Antonino Daplas <adaplas@pol.net>
---

 Kconfig           |    2 +-
 backlight/Kconfig |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff -Nru a/drivers/video/Kconfig b/drivers/video/Kconfig
--- a/drivers/video/Kconfig	2005-01-15 04:25:56 +08:00
+++ b/drivers/video/Kconfig	2005-01-18 05:04:55 +08:00
@@ -1107,7 +1107,7 @@
 	source "drivers/video/logo/Kconfig"
 endif
 
-if SYSFS
+if FB && SYSFS
 	source "drivers/video/backlight/Kconfig"
 endif
 
diff -Nru a/drivers/video/backlight/Kconfig b/drivers/video/backlight/Kconfig
--- a/drivers/video/backlight/Kconfig	2005-01-15 04:10:38 +08:00
+++ b/drivers/video/backlight/Kconfig	2005-01-18 05:04:55 +08:00
@@ -11,6 +11,7 @@
 config BACKLIGHT_CLASS_DEVICE
         tristate "Lowlevel Backlight controls"
 	depends on BACKLIGHT_LCD_SUPPORT
+	default m
 	help
 	  This framework adds support for low-level control of the LCD
           backlight. This includes support for brightness and power.
@@ -26,6 +27,7 @@
 config LCD_CLASS_DEVICE
         tristate "Lowlevel LCD controls"
 	depends on BACKLIGHT_LCD_SUPPORT
+	default m
 	help
 	  This framework adds support for low-level control of LCD.
 	  Some framebuffer devices connect to platform-specific LCD modules




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

                 reply	other threads:[~2005-01-17 21:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200501180541.21349.adaplas@hotpop.com \
    --to=adaplas@hotpop.com \
    --cc=akpm@osdl.org \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --cc=zap@homelink.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).