diff options
author | Kevin Hao <haokexin@gmail.com> | 2015-03-12 08:32:46 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-03-17 05:04:32 -0400 |
commit | 5299b620977ed6b1edbbedd5d9641c0afa9780fe (patch) | |
tree | 2d1726fb25210c6e85485ce521e632704ce3b81a | |
parent | e9cfb2d62befcd562291e6a8a63d3bdff89b135b (diff) |
fbdev: nvidia: remove the dependency on PPC_OF
The OF functionality has moved to a common place and be used by many
archs. So we don't need to include the ppc arch specific header files
and depend on PPC_OF option any more. This is a preparation for
killing PPC_OF.
Signed-off-by: Kevin Hao <haokexin@gmail.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r-- | drivers/video/fbdev/nvidia/Makefile | 3 | ||||
-rw-r--r-- | drivers/video/fbdev/nvidia/nv_of.c | 3 | ||||
-rw-r--r-- | drivers/video/fbdev/nvidia/nv_proto.h | 8 | ||||
-rw-r--r-- | drivers/video/fbdev/nvidia/nvidia.c | 4 |
4 files changed, 1 insertions, 17 deletions
diff --git a/drivers/video/fbdev/nvidia/Makefile b/drivers/video/fbdev/nvidia/Makefile index ca47432113e0..917d3eb05feb 100644 --- a/drivers/video/fbdev/nvidia/Makefile +++ b/drivers/video/fbdev/nvidia/Makefile | |||
@@ -5,9 +5,8 @@ | |||
5 | obj-$(CONFIG_FB_NVIDIA) += nvidiafb.o | 5 | obj-$(CONFIG_FB_NVIDIA) += nvidiafb.o |
6 | 6 | ||
7 | nvidiafb-y := nvidia.o nv_hw.o nv_setup.o \ | 7 | nvidiafb-y := nvidia.o nv_hw.o nv_setup.o \ |
8 | nv_accel.o | 8 | nv_accel.o nv_of.o |
9 | nvidiafb-$(CONFIG_FB_NVIDIA_I2C) += nv_i2c.o | 9 | nvidiafb-$(CONFIG_FB_NVIDIA_I2C) += nv_i2c.o |
10 | nvidiafb-$(CONFIG_FB_NVIDIA_BACKLIGHT) += nv_backlight.o | 10 | nvidiafb-$(CONFIG_FB_NVIDIA_BACKLIGHT) += nv_backlight.o |
11 | nvidiafb-$(CONFIG_PPC_OF) += nv_of.o | ||
12 | 11 | ||
13 | nvidiafb-objs := $(nvidiafb-y) | 12 | nvidiafb-objs := $(nvidiafb-y) |
diff --git a/drivers/video/fbdev/nvidia/nv_of.c b/drivers/video/fbdev/nvidia/nv_of.c index 3bc13df4b120..5f3e5179c25a 100644 --- a/drivers/video/fbdev/nvidia/nv_of.c +++ b/drivers/video/fbdev/nvidia/nv_of.c | |||
@@ -19,9 +19,6 @@ | |||
19 | 19 | ||
20 | #include <asm/io.h> | 20 | #include <asm/io.h> |
21 | 21 | ||
22 | #include <asm/prom.h> | ||
23 | #include <asm/pci-bridge.h> | ||
24 | |||
25 | #include "nv_type.h" | 22 | #include "nv_type.h" |
26 | #include "nv_local.h" | 23 | #include "nv_local.h" |
27 | #include "nv_proto.h" | 24 | #include "nv_proto.h" |
diff --git a/drivers/video/fbdev/nvidia/nv_proto.h b/drivers/video/fbdev/nvidia/nv_proto.h index ff5c410355ea..878a5ce02299 100644 --- a/drivers/video/fbdev/nvidia/nv_proto.h +++ b/drivers/video/fbdev/nvidia/nv_proto.h | |||
@@ -42,16 +42,8 @@ int nvidia_probe_i2c_connector(struct fb_info *info, int conn, | |||
42 | #define nvidia_probe_i2c_connector(p, c, edid) (-1) | 42 | #define nvidia_probe_i2c_connector(p, c, edid) (-1) |
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | #ifdef CONFIG_PPC_OF | ||
46 | int nvidia_probe_of_connector(struct fb_info *info, int conn, | 45 | int nvidia_probe_of_connector(struct fb_info *info, int conn, |
47 | u8 ** out_edid); | 46 | u8 ** out_edid); |
48 | #else | ||
49 | static inline int nvidia_probe_of_connector(struct fb_info *info, int conn, | ||
50 | u8 ** out_edid) | ||
51 | { | ||
52 | return -1; | ||
53 | } | ||
54 | #endif | ||
55 | 47 | ||
56 | /* in nv_accel.c */ | 48 | /* in nv_accel.c */ |
57 | extern void NVResetGraphics(struct fb_info *info); | 49 | extern void NVResetGraphics(struct fb_info *info); |
diff --git a/drivers/video/fbdev/nvidia/nvidia.c b/drivers/video/fbdev/nvidia/nvidia.c index def041204676..4273c6ee8cf6 100644 --- a/drivers/video/fbdev/nvidia/nvidia.c +++ b/drivers/video/fbdev/nvidia/nvidia.c | |||
@@ -24,10 +24,6 @@ | |||
24 | #ifdef CONFIG_MTRR | 24 | #ifdef CONFIG_MTRR |
25 | #include <asm/mtrr.h> | 25 | #include <asm/mtrr.h> |
26 | #endif | 26 | #endif |
27 | #ifdef CONFIG_PPC_OF | ||
28 | #include <asm/prom.h> | ||
29 | #include <asm/pci-bridge.h> | ||
30 | #endif | ||
31 | #ifdef CONFIG_BOOTX_TEXT | 27 | #ifdef CONFIG_BOOTX_TEXT |
32 | #include <asm/btext.h> | 28 | #include <asm/btext.h> |
33 | #endif | 29 | #endif |