]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4fd73a02cc7d72d6b9c1deb4e3de253047443cac
treeaad37295d1c6e5246bd31d785bef92755a9b2d89
parent228051a58b7eea214011b90ac7add1cd98e9aae6
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