summaryrefslogtreecommitdiff
path: root/drivers/video/sbuslib.c
diff options
context:
space:
mode:
authorRobert Reif <reif@earthlink.net>2008-05-08 21:37:30 -0700
committerDavid S. Miller <davem@davemloft.net>2008-05-08 21:37:30 -0700
commit6cd5a86b56ec8fc8651c043bdb05ea0c662fb704 (patch)
tree30ba1d4946654f55570ebb69a7286d2cb72fd7a2 /drivers/video/sbuslib.c
parentdc5dc7e6d71ca9fd1ea01a1418150af3b2937489 (diff)
sparc video: remove open boot prom code
Replace remaining open boot prom code with of. Boot tested on sparc32 and compile tested on sparc64. Signed-off-by: Robert Reif <reif@earthlink.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/video/sbuslib.c')
-rw-r--r--drivers/video/sbuslib.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/video/sbuslib.c b/drivers/video/sbuslib.c
index 4deaac05b938..37d764ad56b0 100644
--- a/drivers/video/sbuslib.c
+++ b/drivers/video/sbuslib.c
@@ -10,18 +10,19 @@
#include <linux/fb.h>
#include <linux/mm.h>
#include <linux/uaccess.h>
+#include <linux/of_device.h>
-#include <asm/oplib.h>
#include <asm/fbio.h>
#include "sbuslib.h"
-void sbusfb_fill_var(struct fb_var_screeninfo *var, int prom_node, int bpp)
+void sbusfb_fill_var(struct fb_var_screeninfo *var, struct device_node *dp,
+ int bpp)
{
memset(var, 0, sizeof(*var));
- var->xres = prom_getintdefault(prom_node, "width", 1152);
- var->yres = prom_getintdefault(prom_node, "height", 900);
+ var->xres = of_getintprop_default(dp, "width", 1152);
+ var->yres = of_getintprop_default(dp, "height", 900);
var->xres_virtual = var->xres;
var->yres_virtual = var->yres;
var->bits_per_pixel = bpp;