@@ -39,6 +39,15 @@ static int __init ux500_l2x0_init(void)
{
u32 aux_val = 0x3e000000;
+ /* Ick. I wish there was a single compatible value to compare for,
+ * but there isn't.
+ */
+ if (!of_machine_is_compatible("st-ericsson,u8500") &&
+ !of_machine_is_compatible("st-ericsson,u8540") &&
+ !of_machine_is_compatible("st-ericsson,u9500") &&
+ !of_machine_is_compatible("st-ericsson,u8540"))
+ return -ENODEV;
+
if (cpu_is_u8500_family() || cpu_is_ux540_family())
l2x0_base = __io_address(U8500_L2CC_BASE);
else
Add compatible checks for ux500. This should probably be moved to generic DT-based probing whenever DT is populated instead, but until then at least don't panic all non-ux500 multiplatform machines. Signed-off-by: Olof Johansson <olof@lixom.net> --- Linus, I'll apply this directly if you ack it, let me know. -Olof arch/arm/mach-ux500/cache-l2x0.c | 9 +++++++++ 1 file changed, 9 insertions(+)