clk-bcm2835: use subsys_initcall for the clock driver when IMA is enabled
authorAlberto Solavagione <albertosolavagione30@gmail.com>
Wed, 20 Apr 2022 15:15:42 +0000 (17:15 +0200)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Sun, 24 Apr 2022 16:08:15 +0000 (17:08 +0100)
Co-authored-by: Davide Scovotto <scovottodavide@gmail.com>
Co-developed-by: Davide Scovotto <scovottodavide@gmail.com>
Signed-off-by: Davide Scovotto <scovottodavide@gmail.com>
Signed-off-by: Alberto Solavagione <albertosolavagione30@gmail.com>
drivers/clk/bcm/clk-bcm2835.c

index 7112a9c4f7e3ebd49dc4cfca7fcecd2de6b9b2e8..9ed157b0a37a506d494e904a0b31651878d055ce 100644 (file)
@@ -2408,7 +2408,11 @@ static int __init __bcm2835_clk_driver_init(void)
 {
        return platform_driver_register(&bcm2835_clk_driver);
 }
+#ifdef CONFIG_IMA
+subsys_initcall(__bcm2835_clk_driver_init);
+#else
 postcore_initcall(__bcm2835_clk_driver_init);
+#endif
 
 MODULE_AUTHOR("Eric Anholt <eric@anholt.net>");
 MODULE_DESCRIPTION("BCM2835 clock driver");