]> git.baikalelectronics.ru Git - kernel.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)
commitfdd6bf64a3290db0046179285b475ef89ac2a67e
tree34be71427db78e6f2cd8a111170665ac728b8684
parentc0099780f46d14021eb079df060c783a80a0d2bc
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