usb: otg: make probe() work again
Subsystems (2)
PATCH 1/1 usb: otg: make probe() work again
The probe() function will always fail because we're testing the wrong variable.
Signed-off-by Dan Carpenter <[email protected]>
drivers/usb/otg/ab8500-usb.c +1 -1
@@ -489,7 +489,7 @@ static int __devinit ab8500_usb_probe(struct platform_device *pdev)return -ENOMEM ; otg =kzalloc (sizeof *otg,GFP_KERNEL ); -if (!ab->phy.otg) { +if (!otg) {kfree (ab);return -ENOMEM ; }