diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-03-02 11:08:14 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-02 16:22:11 -0800 |
commit | 5f0b3f9998ceca8414dfb7d0dba69209f11b44af (patch) | |
tree | 15ecb1793ca206b62be0ffbb44e841aa0179d4d8 | |
parent | 85b4b3c8c189e0159101f7628a71411af072ff69 (diff) | |
download | op-kernel-dev-5f0b3f9998ceca8414dfb7d0dba69209f11b44af.zip op-kernel-dev-5f0b3f9998ceca8414dfb7d0dba69209f11b44af.tar.gz |
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>
-rw-r--r-- | drivers/usb/otg/ab8500-usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |