diff options
| author | David Woodhouse <David.Woodhouse@intel.com> | 2008-07-11 14:36:25 +0100 | 
|---|---|---|
| committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-07-11 14:36:25 +0100 | 
| commit | a8931ef380c92d121ae74ecfb03b2d63f72eea6f (patch) | |
| tree | 980fb6b019e11e6cb1ece55b7faff184721a8053 /drivers/video/sbuslib.c | |
| parent | 90574d0a4d4b73308ae54a2a57a4f3f1fa98e984 (diff) | |
| parent | e5a5816f7875207cb0a0a7032e39a4686c5e10a4 (diff) | |
| download | olio-linux-3.10-a8931ef380c92d121ae74ecfb03b2d63f72eea6f.tar.xz olio-linux-3.10-a8931ef380c92d121ae74ecfb03b2d63f72eea6f.zip  | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'drivers/video/sbuslib.c')
| -rw-r--r-- | drivers/video/sbuslib.c | 9 | 
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/video/sbuslib.c b/drivers/video/sbuslib.c index 4deaac05b93..37d764ad56b 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;  |