diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-03-02 09:08:14 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-03 01:22:11 +0100 |
commit | 5f0b3f9998ceca8414dfb7d0dba69209f11b44af (patch) | |
tree | 15ecb1793ca206b62be0ffbb44e841aa0179d4d8 | |
parent | usb: gadgetfs: return number of bytes on ep0 read request (diff) | |
download | linux-5f0b3f9998ceca8414dfb7d0dba69209f11b44af.tar.xz linux-5f0b3f9998ceca8414dfb7d0dba69209f11b44af.zip |
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 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; } |