On Mon, Jan 24, 2011 at 10:57:38AM +0100, Heiko Schocher wrote: > - changes since v1: > add Ben Dooks, Vincent Sanders and Samuel Ortiz to cc, as suggested from > Paul Mundt. > - changes since v2: > add comments from Randy Dunlap: > - move parameter documentation to Documentation/fb/sm501.txt > - changes since v3: > - rebased against v2.6.38-rc2 > - split in 3 patches > - of support patch > - get rid of "#if defined(CONFIG_PPC_MPC52xx)" usage > hide this in DTS, as Paul suggested. > - i/o routine patch > - edid support patch > [snip] > diff --git a/drivers/video/sm501fb.c b/drivers/video/sm501fb.c > index 30b53ae..2ae57aa 100644 > --- a/drivers/video/sm501fb.c > +++ b/drivers/video/sm501fb.c > @@ -1729,6 +1729,15 @@ static int sm501fb_init_fb(struct fb_info *fb, > FBINFO_HWACCEL_COPYAREA | FBINFO_HWACCEL_FILLRECT | > FBINFO_HWACCEL_XPAN | FBINFO_HWACCEL_YPAN; > > +#if defined(CONFIG_PPC_MPC52xx) > +#ifdef __BIG_ENDIAN > + if (of_get_property(info->dev->parent->of_node, "little-endian", NULL)) > + fb->flags |= FBINFO_FOREIGN_ENDIAN; > +#else > + if (of_get_property(info->dev->parent->of_node, "big-endian", NULL)) > + fb->flags |= FBINFO_FOREIGN_ENDIAN; > +#endif > +#endif > /* fixed data */ > > fb->fix.type = FB_TYPE_PACKED_PIXELS; Missed one? -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html