]> xenbits.xensource.com Git - arm/linux.git/commitdiff
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Nov 2017 08:23:22 +0000 (09:23 +0100)
[ Upstream commit 6e613ebf4405fc09e2a8c16ed193b47f80a3cbed ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-omap2/pdata-quirks.c

index 05e20aaf68dd0461b23acfcf1c6aef78adb5a8c7..770216baa73783d806399c13b4eb64ae1a8cfd8e 100644 (file)
@@ -600,7 +600,6 @@ static void pdata_quirks_check(struct pdata_init *quirks)
                if (of_machine_is_compatible(quirks->compatible)) {
                        if (quirks->fn)
                                quirks->fn();
-                       break;
                }
                quirks++;
        }