mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
b0c750f74e
Currently the staging board code is initialized from a late_initcall(). However, unused PM domains are also disabled from a late_initcall(), which happens before due to link order. Change the initialization of staging board code from using late_initcall() to device_initcall() to fix this. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Simon Horman <horms+renesas@verge.net.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
20 lines
441 B
C
20 lines
441 B
C
#ifndef __BOARD_H__
|
|
#define __BOARD_H__
|
|
#include <linux/init.h>
|
|
#include <linux/of.h>
|
|
|
|
bool board_staging_dt_node_available(const struct resource *resource,
|
|
unsigned int num_resources);
|
|
|
|
#define board_staging(str, fn) \
|
|
static int __init runtime_board_check(void) \
|
|
{ \
|
|
if (of_machine_is_compatible(str)) \
|
|
fn(); \
|
|
\
|
|
return 0; \
|
|
} \
|
|
\
|
|
device_initcall(runtime_board_check)
|
|
|
|
#endif /* __BOARD_H__ */
|