sm501: restructure init to allow only 1 fb on an SM501
authorBen Dooks <ben-linux@fluff.org>
Thu, 24 Jul 2008 04:31:36 +0000 (21:31 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:40 +0000 (10:47 -0700)
commit9b599fb2fc23386dfd2965bf7d10b2b0f628b208
treeaad37295d1c6e5246bd31d785bef92755a9b2d89
parent206c5d69d0540024faffd423fc703f1e457332d7
sm501: restructure init to allow only 1 fb on an SM501

Add the ability to register only one of the two possible main framebuffer
devices on the SM501 by passing platform data for only the framebuffer
that you are interested in having.

As a side note, we update the init sequence to commonise the code that is
executed twice, and fix a pair of missing frees that we didn't do on
framebuffer exit, such as freeing the fb's cmap.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/sm501fb.c