History

of/platform: Fix sparc:allmodconfig build

sparc:allmodconfig fails to build with: drivers/built-in.o: In function `platform_bus_init': (.init.text+0x3684): undefined reference to `of_platform_register_reconfig_notifier' of_platform_register_reconfig_notifier is only declared if both OF_ADDRESS and OF_DYNAMIC are configured. Yet, the include file only declares a dummy function if OF_DYNAMIC is not configured. The sparc architecture does not configure OF_ADDRESS, but does configure OF_DYNAMIC, causing above error.

Guenter Roeck committed 11 years ago

Commit a697c2e1 parent 8cbba1a1 file · +1 −1Browse files

Unified · Split

include/linux/of_platform.h+1−1
@@ -84,7 +84,7 @@ static inline int of_platform_populate(struct device_node *root, · 83 unmodified lines
84static inline void of_platform_depopulate(struct device *parent) { }84static inline void of_platform_depopulate(struct device *parent) { }
85#endif85#endif
86 86
87#ifdef CONFIG_OF_DYNAMIC87#if defined(CONFIG_OF_DYNAMIC) && defined(CONFIG_OF_ADDRESS)
88extern void of_platform_register_reconfig_notifier(void);88extern void of_platform_register_reconfig_notifier(void);
89#else89#else
90static inline void of_platform_register_reconfig_notifier(void) { }90static inline void of_platform_register_reconfig_notifier(void) { }