]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mpc512x: remove unnecessary #if
authorBrian Norris <computersforpeace@gmail.com>
Fri, 11 Oct 2013 17:37:38 +0000 (10:37 -0700)
committerAnatolij Gustschin <agust@denx.de>
Wed, 30 Oct 2013 21:56:10 +0000 (22:56 +0100)
commit6d44c980dd112d5f1769f05eb5494aaec3018695
tree06b48adb9577990574936d07c6a0f94333fbfd82
parenta922ec6497ac7e07501bc388eca427c7ca4701c3
powerpc/mpc512x: remove unnecessary #if

Several functions are only ever referenced locally, so make them static.
Of those functions, many of them are protected by an #if. However, the
code which can compile fine in either case.

Now that (1) the unneeded code is marked 'static' and (2) the code is
only used under a C 'if (IS_ENABLED(CONFIG_FB_FSL_DIU))', the compiler
can automatically remove the unneeded code, and we don't need the #if or
the empty stub functions.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
arch/powerpc/platforms/512x/mpc512x_shared.c
arch/powerpc/sysdev/fsl_soc.h