From: Dan Carpenter <dan.carpenter@oracle.com> Date: Fri, 2 Mar 2012 08:08:14 +0000 (+0300) Subject: usb: otg: ab8500-usb: make probe() work again X-Git-Tag: firefly_0821_release~3680^2~3345^2~22^2~24 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5f0b3f9998ceca8414dfb7d0dba69209f11b44af;p=firefly-linux-kernel-4.4.55.git usb: otg: ab8500-usb: make probe() work again The probe() function will always fail because we're testing the wrong variable. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> --- diff --git a/drivers/usb/otg/ab8500-usb.c b/drivers/usb/otg/ab8500-usb.c index e6371ff5f583..a84af677dc59 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; }