1 --- a/arch/mips/bcm63xx/boards/board_common.c
2 +++ b/arch/mips/bcm63xx/boards/board_common.c
3 @@ -143,6 +143,18 @@ void __init device_tree_init(void)
5 unflatten_and_copy_device_tree();
8 +int board_of_device_present(const char *alias)
11 + struct device_node *np;
13 + np = of_find_node_by_path(alias);
14 + present = of_device_is_available(np);
21 static struct gpio_led_platform_data bcm63xx_led_data;
22 --- a/arch/mips/bcm63xx/boards/board_common.h
23 +++ b/arch/mips/bcm63xx/boards/board_common.h
24 @@ -15,4 +15,13 @@ void board_bcm963xx_init(void);
25 static inline void board_bcm963xx_init(void) { }
28 +#if defined(CONFIG_OF)
29 +int board_of_device_present(const char *alias);
31 +static inline void board_of_device_present(const char *alias)
37 #endif /* __BOARD_COMMON_H */