USB: host: ohci-at91: add sam9x60-sfr definition for ohci
authorNicolas Ferre <nicolas.ferre@microchip.com>
Wed, 16 Jan 2019 09:57:43 +0000 (10:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2019 08:58:04 +0000 (09:58 +0100)
Add this SFR compatible definition for the sam9x60 SoC and manage
its use in ohci-at91.c driver.

Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-at91.c

index ec6739e..fc35a79 100644 (file)
@@ -141,8 +141,11 @@ static struct regmap *at91_dt_syscon_sfr(void)
        struct regmap *regmap;
 
        regmap = syscon_regmap_lookup_by_compatible("atmel,sama5d2-sfr");
-       if (IS_ERR(regmap))
-               regmap = NULL;
+       if (IS_ERR(regmap)) {
+               regmap = syscon_regmap_lookup_by_compatible("microchip,sam9x60-sfr");
+               if (IS_ERR(regmap))
+                       regmap = NULL;
+       }
 
        return regmap;
 }