]> bbs.cooldavid.org Git - net-next-2.6.git/commit
fbdev: sh-mobile-lcdc: fix potential Oops in SH-Mobile LCDC framebuffer driver
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 30 Jun 2010 09:26:35 +0000 (09:26 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 4 Aug 2010 07:03:02 +0000 (16:03 +0900)
commitdba6f385b83d7f19eb1d4df12f422bab945c7f10
tree90dd9b477986bc568bc4445c7fbb0c9409a89451
parent8a2b6beffc88b83089845d72eed2ed74eb5c9b1e
fbdev: sh-mobile-lcdc: fix potential Oops in SH-Mobile LCDC framebuffer driver

sh_mobile_lcdc_setup_clocks() can perform IO, therefore it has to be called
after ioremap(). Also check return code of ioremap() and use resource_size()
instead of open-coding it.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/sh_mobile_lcdcfb.c