From: Shubhrajyoti D Date: Thu, 22 Mar 2012 07:18:06 +0000 (+0530) Subject: usb: musb: omap: fix the error check for pm_runtime_get_sync X-Git-Tag: v3.4-rc4~14^2~14^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad579699c4f0274bf522a9252ff9b20c72197e48;p=pandora-kernel.git usb: musb: omap: fix the error check for pm_runtime_get_sync pm_runtime_get_sync returns a signed integer. In case of errors it returns a negative value. This patch fixes the error check by making it signed instead of unsigned thus preventing register access if get_sync_fails. Also passes the error cause to the debug message. Cc: stable@vger.kernel.org Cc: Kishon Vijay Abraham I Signed-off-by: Shubhrajyoti D Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed