Skip to content

Commit

Permalink
usb: otg: ab8500-usb: make probe() work again
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Mar 3, 2012
1 parent 85b4b3c commit 5f0b3f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/otg/ab8500-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5f0b3f9

Please sign in to comment.