diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-03-02 03:08:14 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-02 19:22:11 -0500 |
commit | 5f0b3f9998ceca8414dfb7d0dba69209f11b44af (patch) | |
tree | 15ecb1793ca206b62be0ffbb44e841aa0179d4d8 /drivers/usb/otg | |
parent | 85b4b3c8c189e0159101f7628a71411af072ff69 (diff) |
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>
Diffstat (limited to 'drivers/usb/otg')
-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) | |||
489 | return -ENOMEM; | 489 | return -ENOMEM; |
490 | 490 | ||
491 | otg = kzalloc(sizeof *otg, GFP_KERNEL); | 491 | otg = kzalloc(sizeof *otg, GFP_KERNEL); |
492 | if (!ab->phy.otg) { | 492 | if (!otg) { |
493 | kfree(ab); | 493 | kfree(ab); |
494 | return -ENOMEM; | 494 | return -ENOMEM; |
495 | } | 495 | } |