public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] usb: otg: make probe() work again
@ 2012-03-02  8:08 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2012-03-02  8:08 UTC (permalink / raw)
  To: kernel-janitors

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

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-03-02  8:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-02  8:08 [patch] usb: otg: make probe() work again Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox