Commit e764a20196f4e1b497a42fdc6e9d254e7ec290f2

Authored by Jean Delvare
Committed by Linus Torvalds
1 parent 3a59026ba1

[PATCH] radeonfb: prevent spurious recompilations

Prevent spurious recompilations of the radeonfb driver when I2C/DDC support
is not included and i2c header files are modified.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

drivers/video/aty/radeon_base.c
... ... @@ -69,7 +69,6 @@
69 69 #include <linux/pci.h>
70 70 #include <linux/vmalloc.h>
71 71 #include <linux/device.h>
72   -#include <linux/i2c.h>
73 72  
74 73 #include <asm/io.h>
75 74 #include <asm/uaccess.h>
drivers/video/aty/radeonfb.h
... ... @@ -10,9 +10,10 @@
10 10 #include <linux/fb.h>
11 11  
12 12  
  13 +#ifdef CONFIG_FB_RADEON_I2C
13 14 #include <linux/i2c.h>
14   -#include <linux/i2c-id.h>
15 15 #include <linux/i2c-algo-bit.h>
  16 +#endif
16 17  
17 18 #include <asm/io.h>
18 19