]> git.karo-electronics.de Git - linux-beck.git/commit
arm, fbdev, omap2, LLVMLinux: Remove nested function from omapfb
authorBehan Webster <behanw@converseincode.com>
Sat, 27 Sep 2014 01:10:53 +0000 (18:10 -0700)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 30 Sep 2014 10:11:53 +0000 (13:11 +0300)
commitc8b8888f097c7df260cf5beaf2e3a325660a16a4
tree34be71427db78e6f2cd8a111170665ac728b8684
parent032e57f01b7524ad9aec39788b38f523583ab58e
arm, fbdev, omap2, LLVMLinux: Remove nested function from omapfb

Replace the use of nested functions where a normal function will suffice.

Nested functions are not liked by upstream kernel developers in general. Their
use breaks the use of clang as a compiler, and doesn't make the code any
better.

This code now works for both gcc and clang.

Signed-off-by: Behan Webster <behanw@converseincode.com>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/omap2/omapfb/omapfb-main.c