staging: sm7xxfb: use framebuffer_alloc and release
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Thu, 23 Apr 2015 13:38:16 +0000 (19:08 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 May 2015 07:24:12 +0000 (09:24 +0200)
commitcd14ad8be7c521db39f031ab99393360eac553ce
tree8967f151603afc94ae0aed722169a1c44fecedd4
parentcf376ec0ee5c2078d99a60aadd742232f725b451
staging: sm7xxfb: use framebuffer_alloc and release

use the standard framebuffer_alloc() and framebuffer_release() instead
of custom defined function. for making that change we had to change a
member of the private structure from a variable to pointer and had to
touch almost all places of the file. since fb was changed into a pointer
so all instance of "sfb->fb." has been changed into "sfb->fb->".
now we will get build warning about smtc_alloc_fb_info() and
smtc_free_fb_info() to be unused which will be removed in the next
patch of the series.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm7xxfb/sm7xxfb.c