From: Benson Leung Date: Mon, 4 May 2015 17:36:36 +0000 (-0700) Subject: mailbox: Fix up error handling in mbox_request_channel() X-Git-Tag: omap-for-v4.3/legacy-v2-signed~138^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d805fc1c6b2ec09f27bcd951c2aee3da919f81a;p=pandora-kernel.git mailbox: Fix up error handling in mbox_request_channel() mbox_request_channel() currently returns EBUSY in the event the controller is not present or if of_xlate() fails, but in neither case is EBUSY really appropriate. Return EPROBE_DEFER if the controller is not yet present and change of_xlate() to return an ERR_PTR instead of NULL so that the error can be propagated back to the caller of mbox_request_channel(). Signed-off-by: Benson Leung Signed-off-by: Andrew Bresticker Acked-by: Suman Anna Reviewed-by: Jon Hunter Tested-by: Jon Hunter Signed-off-by: Jassi Brar --- Reading git-diff-tree failed