]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
soc: renesas: Register SoC device early
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 31 Mar 2017 09:01:54 +0000 (11:01 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 7 Apr 2017 17:53:39 +0000 (13:53 -0400)
The r8a7795 SYSC driver manages PM Domains, and thus is initialized from
an early_initcall().  However, this means the driver cannot check the
SoC revision, as the SoC device hasn't been registered yet.

Change renesas_soc_init() from a core_initcall() to an early_initcall()
to fix this (renesas-soc.o is listed before rcar-sysc.o in the Makefile).

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/soc/renesas/renesas-soc.c

index 330960312296f603075fbcd0296f2693df8889aa..51ed33f3426dddc0aa18d68bbd20cf383f633316 100644 (file)
@@ -254,4 +254,4 @@ static int __init renesas_soc_init(void)
 
        return 0;
 }
-core_initcall(renesas_soc_init);
+early_initcall(renesas_soc_init);