diff options
author | Shubhrajyoti D <shubhrajyoti@ti.com> | 2012-03-22 12:48:06 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-27 10:16:51 -0700 |
commit | 5d782e6bba7fa9da7347b8ac749fc18176be9ae3 (patch) | |
tree | 7d770e263bc9f3fedf3f9da6ba788d778b51b791 /drivers/pci/quirks.c | |
parent | 6407c7c9a16e5778e93da2b067c80f7a609a9e37 (diff) | |
download | lwn-5d782e6bba7fa9da7347b8ac749fc18176be9ae3.tar.gz lwn-5d782e6bba7fa9da7347b8ac749fc18176be9ae3.zip |
usb: musb: omap: fix the error check for pm_runtime_get_sync
commit ad579699c4f0274bf522a9252ff9b20c72197e48 upstream.
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: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pci/quirks.c')
0 files changed, 0 insertions, 0 deletions