diff options
author | Brian Norris <computersforpeace@gmail.com> | 2013-10-11 13:37:38 -0400 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2013-10-30 17:56:10 -0400 |
commit | 7e198197ec878c720af4dc35c49c0c6a99b83f9f (patch) | |
tree | 06b48adb9577990574936d07c6a0f94333fbfd82 /arch/powerpc/sysdev | |
parent | 2bf75084f6d9f9a91ba6e30a501ff070d8a1acf6 (diff) |
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>
Diffstat (limited to 'arch/powerpc/sysdev')
-rw-r--r-- | arch/powerpc/sysdev/fsl_soc.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/powerpc/sysdev/fsl_soc.h b/arch/powerpc/sysdev/fsl_soc.h index c6d00736f07f..4c5a19ef4f0b 100644 --- a/arch/powerpc/sysdev/fsl_soc.h +++ b/arch/powerpc/sysdev/fsl_soc.h | |||
@@ -21,8 +21,6 @@ struct device_node; | |||
21 | 21 | ||
22 | extern void fsl_rstcr_restart(char *cmd); | 22 | extern void fsl_rstcr_restart(char *cmd); |
23 | 23 | ||
24 | #if defined(CONFIG_FB_FSL_DIU) || defined(CONFIG_FB_FSL_DIU_MODULE) | ||
25 | |||
26 | /* The different ports that the DIU can be connected to */ | 24 | /* The different ports that the DIU can be connected to */ |
27 | enum fsl_diu_monitor_port { | 25 | enum fsl_diu_monitor_port { |
28 | FSL_DIU_PORT_DVI, /* DVI */ | 26 | FSL_DIU_PORT_DVI, /* DVI */ |
@@ -43,7 +41,6 @@ struct platform_diu_data_ops { | |||
43 | }; | 41 | }; |
44 | 42 | ||
45 | extern struct platform_diu_data_ops diu_ops; | 43 | extern struct platform_diu_data_ops diu_ops; |
46 | #endif | ||
47 | 44 | ||
48 | void fsl_hv_restart(char *cmd); | 45 | void fsl_hv_restart(char *cmd); |
49 | void fsl_hv_halt(void); | 46 | void fsl_hv_halt(void); |