Skip to contentSkip to conversation

usb: otg: make probe() work again

PATCH New Dan Carpenter 1 participant 1 message Mar 2, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: otg: make probe() work again

The probe() function will always fail because we're testing the wrong variable.

drivers/usb/otg/ab8500-usb.c +1 -1
index e6371ff..a84af67 100644
@@ -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;
 	}