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>
This commit is contained in:
committed by
Anatolij Gustschin
parent
2bf75084f6
commit
7e198197ec
@@ -21,8 +21,6 @@ struct device_node;
|
||||
|
||||
extern void fsl_rstcr_restart(char *cmd);
|
||||
|
||||
#if defined(CONFIG_FB_FSL_DIU) || defined(CONFIG_FB_FSL_DIU_MODULE)
|
||||
|
||||
/* The different ports that the DIU can be connected to */
|
||||
enum fsl_diu_monitor_port {
|
||||
FSL_DIU_PORT_DVI, /* DVI */
|
||||
@@ -43,7 +41,6 @@ struct platform_diu_data_ops {
|
||||
};
|
||||
|
||||
extern struct platform_diu_data_ops diu_ops;
|
||||
#endif
|
||||
|
||||
void fsl_hv_restart(char *cmd);
|
||||
void fsl_hv_halt(void);
|
||||
|
||||
Reference in New Issue
Block a user