ARM: OMAP2+: Fix init for multiple quirks for the same SoC
authorTony Lindgren <tony@atomide.com>
Thu, 5 Jan 2017 19:08:20 +0000 (11:08 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 6 Jan 2017 16:54:24 +0000 (08:54 -0800)
It's possible that there are multiple quirks that need to be initialized
for the same SoC. Fix the issue by not returning on the first match.

Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/pdata-quirks.c

index 477910a..58d87a7 100644 (file)
@@ -599,7 +599,6 @@ static void pdata_quirks_check(struct pdata_init *quirks)
                if (of_machine_is_compatible(quirks->compatible)) {
                        if (quirks->fn)
                                quirks->fn();
-                       break;
                }
                quirks++;
        }