{
unsigned int width, height, depth, pitch;
unsigned long address = 0;
{
unsigned int width, height, depth, pitch;
unsigned long address = 0;
- prop = (u32 *)get_property(np, "linux,bootx-width", NULL);
+ prop = get_property(np, "linux,bootx-width", NULL);
- prop = (u32 *)get_property(np, "linux,bootx-height", NULL);
+ prop = get_property(np, "linux,bootx-height", NULL);
- prop = (u32 *)get_property(np, "linux,bootx-depth", NULL);
+ prop = get_property(np, "linux,bootx-depth", NULL);
- prop = (u32 *)get_property(np, "linux,bootx-linebytes", NULL);
+ prop = get_property(np, "linux,bootx-linebytes", NULL);
- prop = (u32 *)get_property(np, "linebytes", NULL);
- if (prop)
+ prop = get_property(np, "linebytes", NULL);
+ if (prop && *prop != 0xffffffffu)
- name = (char *)get_property(of_chosen, "linux,stdout-path", NULL);
+ name = get_property(of_chosen, "linux,stdout-path", NULL);