On Tue, 2019-02-26 at 10:12 +0200, Markku Savela wrote: > In case anyone is interested, I got IMA to accept TPM chip in my special > case (linaro optee kernel) by changing > > clk-bcm2835.c: core_initcall -> susbsys_initcall > raspberrypi.c: subsys_initcall -> core_initcall > > At first check, the system seems to be ok. Maybe some combination of > initcalls could work, but this is enough for me. Thank you for sharing this! Mimi > > diff --git a/drivers/clk/bcm/clk-bcm2835.c b/drivers/clk/bcm/clk-bcm2835.c > index d6caac9c3..7cdd597f1 100644 > --- a/drivers/clk/bcm/clk-bcm2835.c > +++ b/drivers/clk/bcm/clk-bcm2835.c > @@ -2330,7 +2330,7 @@ static int __init __bcm2835_clk_driver_init(void) > { > return platform_driver_register(&bcm2835_clk_driver); > } > -core_initcall(__bcm2835_clk_driver_init); > +subsys_initcall(__bcm2835_clk_driver_init); > > MODULE_AUTHOR("Eric Anholt <eric@xxxxxxxxxx>"); > MODULE_DESCRIPTION("BCM2835 clock driver"); > diff --git a/drivers/firmware/raspberrypi.c b/drivers/firmware/raspberrypi.c > index a82819a78..dfa362e1c 100644 > --- a/drivers/firmware/raspberrypi.c > +++ b/drivers/firmware/raspberrypi.c > @@ -457,7 +457,7 @@ static int __init rpi_firmware_init(void) > out1: > return ret; > } > -subsys_initcall(rpi_firmware_init); > +core_initcall(rpi_firmware_init); > > static void __init rpi_firmware_exit(void) > {