46d026ac10
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 <dbaryshkov@gmail.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
11 lines
242 B
C
11 lines
242 B
C
#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
|