summaryrefslogtreecommitdiffstats
path: root/drivers/usb/otg
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-03-02 11:08:14 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-02 16:22:11 -0800
commit5f0b3f9998ceca8414dfb7d0dba69209f11b44af (patch)
tree15ecb1793ca206b62be0ffbb44e841aa0179d4d8 /drivers/usb/otg
parent85b4b3c8c189e0159101f7628a71411af072ff69 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/otg/ab8500-usb.c b/drivers/usb/otg/ab8500-usb.c
index e6371ff5f58..a84af677dc5 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;
}