Skip to content

Commit

Permalink
[PATCH] fbdev: include backlight.h only when __KERNEL__ is defined
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michal Januszewski authored and Greg Kroah-Hartman committed Aug 14, 2006
1 parent e579dcb commit 2b25742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/fb.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef _LINUX_FB_H
#define _LINUX_FB_H

#include <linux/backlight.h>
#include <asm/types.h>

/* Definitions of frame buffers */
Expand Down Expand Up @@ -381,6 +380,7 @@ struct fb_cursor {
#include <linux/workqueue.h>
#include <linux/notifier.h>
#include <linux/list.h>
#include <linux/backlight.h>
#include <asm/io.h>

struct vm_area_struct;
Expand Down

0 comments on commit 2b25742

Please sign in to comment.