summaryrefslogtreecommitdiffstats
path: root/drivers/video/nvidia/nv_of.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2014-02-13 15:31:38 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-04-17 08:10:19 +0300
commitf7018c21350204c4cf628462f229d44d03545254 (patch)
tree408787177164cf51cc06f7aabdb04fcff8d2b6aa /drivers/video/nvidia/nv_of.c
parentc26ef3eb3c11274bad1b64498d0a134f85755250 (diff)
downloadblackbird-op-linux-f7018c21350204c4cf628462f229d44d03545254.tar.gz
blackbird-op-linux-f7018c21350204c4cf628462f229d44d03545254.zip
video: move fbdev to drivers/video/fbdev
The drivers/video directory is a mess. It contains generic video related files, directories for backlight, console, linux logo, lots of fbdev device drivers, fbdev framework files. Make some order into the chaos by creating drivers/video/fbdev directory, and move all fbdev related files there. No functionality is changed, although I guess it is possible that some subtle Makefile build order related issue could be created by this patch. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Rob Clark <robdclark@gmail.com> Acked-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/video/nvidia/nv_of.c')
-rw-r--r--drivers/video/nvidia/nv_of.c82
1 files changed, 0 insertions, 82 deletions
diff --git a/drivers/video/nvidia/nv_of.c b/drivers/video/nvidia/nv_of.c
deleted file mode 100644
index 3bc13df4b120..000000000000
--- a/drivers/video/nvidia/nv_of.c
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * linux/drivers/video/nvidia/nv_of.c
- *
- * Copyright 2004 Antonino A. Daplas <adaplas @pol.net>
- *
- * Based on rivafb-i2c.c
- *
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file COPYING in the main directory of this archive
- * for more details.
- */
-
-#include <linux/module.h>
-#include <linux/kernel.h>
-#include <linux/delay.h>
-#include <linux/gfp.h>
-#include <linux/pci.h>
-#include <linux/fb.h>
-
-#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"
-
-#include "../edid.h"
-
-int nvidia_probe_of_connector(struct fb_info *info, int conn, u8 **out_edid)
-{
- struct nvidia_par *par = info->par;
- struct device_node *parent, *dp;
- const unsigned char *pedid = NULL;
- static char *propnames[] = {
- "DFP,EDID", "LCD,EDID", "EDID", "EDID1",
- "EDID,B", "EDID,A", NULL };
- int i;
-
- parent = pci_device_to_OF_node(par->pci_dev);
- if (parent == NULL)
- return -1;
- if (par->twoHeads) {
- const char *pname;
- int len;
-
- for (dp = NULL;
- (dp = of_get_next_child(parent, dp)) != NULL;) {
- pname = of_get_property(dp, "name", NULL);
- if (!pname)
- continue;
- len = strlen(pname);
- if ((pname[len-1] == 'A' && conn == 1) ||
- (pname[len-1] == 'B' && conn == 2)) {
- for (i = 0; propnames[i] != NULL; ++i) {
- pedid = of_get_property(dp,
- propnames[i], NULL);
- if (pedid != NULL)
- break;
- }
- of_node_put(dp);
- break;
- }
- }
- }
- if (pedid == NULL) {
- for (i = 0; propnames[i] != NULL; ++i) {
- pedid = of_get_property(parent, propnames[i], NULL);
- if (pedid != NULL)
- break;
- }
- }
- if (pedid) {
- *out_edid = kmemdup(pedid, EDID_LENGTH, GFP_KERNEL);
- if (*out_edid == NULL)
- return -1;
- printk(KERN_DEBUG "nvidiafb: Found OF EDID for head %d\n", conn);
- return 0;
- }
- return -1;
-}
OpenPOWER on IntegriCloud