Skip to content

Commit

Permalink
usb: gadget: at91_udc: fix dt support
Browse files Browse the repository at this point in the history
Don't fail the initialization check for the platform_data
if there is avaiable an associated device tree node.

Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Fabio Porcedda authored and Felipe Balbi committed Sep 10, 2012
1 parent 162ca3c commit 9c6d196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/at91_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1704,7 +1704,7 @@ static int __devinit at91udc_probe(struct platform_device *pdev)
int retval;
struct resource *res;

if (!dev->platform_data) {
if (!dev->platform_data && !pdev->dev.of_node) {
/* small (so we copy it) but critical! */
DBG("missing platform_data\n");
return -ENODEV;
Expand Down

0 comments on commit 9c6d196

Please sign in to comment.