fbdev: nvidia: remove the dependency on PPC_OF
authorKevin Hao <haokexin@gmail.com>
Thu, 12 Mar 2015 12:32:46 +0000 (20:32 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 17 Mar 2015 09:04:32 +0000 (20:04 +1100)
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>
drivers/video/fbdev/nvidia/Makefile
drivers/video/fbdev/nvidia/nv_of.c
drivers/video/fbdev/nvidia/nv_proto.h
drivers/video/fbdev/nvidia/nvidia.c

index ca47432113e017115048bac8be29c8b968d8551e..917d3eb05feb47a836c0a44536fa9d3f6afbdf04 100644 (file)
@@ -5,9 +5,8 @@
 obj-$(CONFIG_FB_NVIDIA)          += nvidiafb.o
 
 nvidiafb-y                       := nvidia.o nv_hw.o nv_setup.o \
-                                   nv_accel.o
+                                   nv_accel.o nv_of.o
 nvidiafb-$(CONFIG_FB_NVIDIA_I2C) += nv_i2c.o
 nvidiafb-$(CONFIG_FB_NVIDIA_BACKLIGHT)  += nv_backlight.o
-nvidiafb-$(CONFIG_PPC_OF)       += nv_of.o
 
 nvidiafb-objs                    := $(nvidiafb-y)
index 3bc13df4b120fd12c9d888a40de7bef5f7ed3372..5f3e5179c25a91809607dd218c383a58e52ff273 100644 (file)
@@ -19,9 +19,6 @@
 
 #include <asm/io.h>
 
-#include <asm/prom.h>
-#include <asm/pci-bridge.h>
-
 #include "nv_type.h"
 #include "nv_local.h"
 #include "nv_proto.h"
index ff5c410355ea46d9d853ecb3a7479c32a9d9cc66..878a5ce022991aeb5859cdcbe103000384e0396f 100644 (file)
@@ -42,16 +42,8 @@ int nvidia_probe_i2c_connector(struct fb_info *info, int conn,
 #define nvidia_probe_i2c_connector(p, c, edid) (-1)
 #endif
 
-#ifdef CONFIG_PPC_OF
 int nvidia_probe_of_connector(struct fb_info *info, int conn,
                              u8 ** out_edid);
-#else
-static inline int nvidia_probe_of_connector(struct fb_info *info, int conn,
-                                     u8 ** out_edid)
-{
-       return -1;
-}
-#endif
 
 /* in nv_accel.c */
 extern void NVResetGraphics(struct fb_info *info);
index def04120467699580abdd4558de05d38f1e91b9a..4273c6ee8cf6baf166fa5d38121c1bf6f3ca735c 100644 (file)
 #ifdef CONFIG_MTRR
 #include <asm/mtrr.h>
 #endif
-#ifdef CONFIG_PPC_OF
-#include <asm/prom.h>
-#include <asm/pci-bridge.h>
-#endif
 #ifdef CONFIG_BOOTX_TEXT
 #include <asm/btext.h>
 #endif