]> err.no Git - linux-2.6/commit
[PATCH] fbdev: include backlight.h only when __KERNEL__ is defined
authorMichal Januszewski <spock@gentoo.org>
Mon, 14 Aug 2006 06:24:26 +0000 (23:24 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Aug 2006 19:54:29 +0000 (12:54 -0700)
commit2b25742556b1a351ce4821f6feddcba23bdd930b
treef3edf7f05895f61c6ef366caa8af1a83b6f76905
parente579dcbf23604cb33c08b5c3c3ac06ca36e7c683
[PATCH] fbdev: include backlight.h only when __KERNEL__ is defined

linux/backlight.h pulls in header files (eg.  ioport.h) that break
compilation of userspace programs.  To solve the problem, only include
backlight.h in fb.h if compiling kernel stuff.

Signed-off-by: Michal Januszewski <spock@gentoo.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/fb.h