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