|
@@ -2017,6 +2017,8 @@ static struct usba_ep * atmel_udc_of_init(struct platform_device *pdev,
|
|
|
|
|
|
udc->errata = match->data;
|
|
|
udc->pmc = syscon_regmap_lookup_by_compatible("atmel,at91sam9g45-pmc");
|
|
|
+ if (IS_ERR(udc->pmc))
|
|
|
+ udc->pmc = syscon_regmap_lookup_by_compatible("atmel,at91sam9rl-pmc");
|
|
|
if (IS_ERR(udc->pmc))
|
|
|
udc->pmc = syscon_regmap_lookup_by_compatible("atmel,at91sam9x5-pmc");
|
|
|
if (udc->errata && IS_ERR(udc->pmc))
|