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>
This commit is contained in:
parent
85b4b3c8c1
commit
5f0b3f9998
@ -489,7 +489,7 @@ static int __devinit ab8500_usb_probe(struct platform_device *pdev)
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
otg = kzalloc(sizeof *otg, GFP_KERNEL);
|
otg = kzalloc(sizeof *otg, GFP_KERNEL);
|
||||||
if (!ab->phy.otg) {
|
if (!otg) {
|
||||||
kfree(ab);
|
kfree(ab);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user