85xx board files have a lot of duplication in *_publish_devices()/ *_declare_of_platform_devices() functions. Merge that into a single function common to most of the boards.
Signed-off-by: Dmitry Eremin-Solenikov Signed-off-by: Kumar Gala
#ifndef MPC85xx_H #define MPC85xx_H extern int mpc85xx_common_publish_devices(void); #ifdef CONFIG_CPM2 extern void mpc85xx_cpm2_pic_init(void); #else static inline void __init mpc85xx_cpm2_pic_init(void) {} #endif /* CONFIG_CPM2 */ #endif