From: Axel Lin Date: Sat, 14 May 2011 06:15:36 +0000 (+0800) Subject: mfd: Fix omap_usbhs_alloc_children error handling X-Git-Tag: v3.0-rc1~131^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d910774f13678caf68fc9cbbef325f08f7f951a3;p=pandora-kernel.git 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 Signed-off-by: Axel Lin Tested-by: Keshava Munegowda Acked-by: Felipe Balbi Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed