|
@@ -1704,7 +1704,7 @@ static int __devinit at91udc_probe(struct platform_device *pdev)
|
|
int retval;
|
|
int retval;
|
|
struct resource *res;
|
|
struct resource *res;
|
|
|
|
|
|
- if (!dev->platform_data) {
|
|
|
|
|
|
+ if (!dev->platform_data && !pdev->dev.of_node) {
|
|
/* small (so we copy it) but critical! */
|
|
/* small (so we copy it) but critical! */
|
|
DBG("missing platform_data\n");
|
|
DBG("missing platform_data\n");
|
|
return -ENODEV;
|
|
return -ENODEV;
|