drivers/video: fsl-diu-fb: merge init_fbinfo() into install_fb()
authorTimur Tabi <timur@freescale.com>
Mon, 19 Dec 2011 22:26:14 +0000 (16:26 -0600)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Tue, 3 Jan 2012 15:59:08 +0000 (15:59 +0000)
commitf934fbd6ba5af5d9328e642794be2842e538d1c6
tree589d2df6944cd1f347f01190cbb10c69656b7f29
parent56bba8cb4218b2646a1d80c100bad689f93fef79
drivers/video: fsl-diu-fb: merge init_fbinfo() into install_fb()

Function init_fbinfo() is called only from install_fb(), and it's only a few
lines long.  Plus, it ignores the return code from fb_alloc_cmap().  Merge
its contents into install_fb() and handle errors properly.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/fsl-diu-fb.c