staging: board: Initialize staging board code earlier
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 17 Jun 2015 08:38:51 +0000 (10:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Jun 2015 04:42:51 +0000 (21:42 -0700)
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>
drivers/staging/board/board.h

index 2390ed6c31a42f2fb79ccfae8e1a8da13e9c1c54..e9c914985d4acb364b3ff61d917787971dbb027f 100644 (file)
@@ -15,6 +15,6 @@ static int __init runtime_board_check(void)   \
        return 0;                               \
 }                                              \
                                                \
-late_initcall(runtime_board_check)
+device_initcall(runtime_board_check)
 
 #endif /* __BOARD_H__ */