]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: Fix omap_usbhs_alloc_children error handling
authorAxel Lin <axel.lin@gmail.com>
Sat, 14 May 2011 06:15:36 +0000 (14:15 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 26 May 2011 17:45:50 +0000 (19:45 +0200)
commit9524a2aea4035f82869742e5504876d7ee7801b3
treebfe5198e0bffeef1f35fe5dade2fc48bc8c9eba8
parent129d7b806f12bc2c708a8a6dcd21ebe88e4d8c71
mfd: Fix omap_usbhs_alloc_children error handling

1. Return proper error if omap_usbhs_alloc_child fails
2. In the case of goto err_ehci, we should call platform_device_unregister(ehci)
   instead of platform_device_put(ehci) because we have already added the
   platform device to device hierarchy.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Tested-by: Keshava Munegowda <keshava_mgowda@ti.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/omap-usb-host.c