The MMIO RAPL interface driver depends on both powercap subsystem and
the intel_rapl_common code.
But when all of them are built-in, the MMIO RAPL interface driver can
be loaded before the other two and this breaks the system during boot.
Fix this by adjusting the init order of the powercap subsystem and the
intel_rapl_common code, so that it can be initialized first.
Fixes: 555c45fe ("int340X/processor_thermal_device: add support for MMIO RAPL")
Reported-by: Kenneth R. Crudup <firstname.lastname@example.org>
Tested-by: Kenneth R. Crudup <email@example.com>
Signed-off-by: Zhang Rui <firstname.lastname@example.org>
[ rjw: Subject & changelog ]
Signed-off-by: Rafael J. Wysocki <email@example.com>