summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2013-06-17 17:43:09 (GMT)
committerDavid Brown <davidb@codeaurora.org>2013-06-24 20:06:41 (GMT)
commit519b371dcd3b175bcffa97bc88a7122e41afd318 (patch)
tree105e5f8a40c06cf87eb9563771e5931d3d825eb3 /drivers/usb
parentf98cf83d0c7c6bf803a75eb1e7c99b6457f12f98 (diff)
downloadlinux-519b371dcd3b175bcffa97bc88a7122e41afd318.tar.xz
msm_serial: Use devm_clk_get() and properly return errors
Clocks are not clk_put() in this driver's error paths during probe. The code that checks for clock errors also fails to properly return the error code from the pclk member if it turns out to be the failing clock, leading to potentially confusing error values if the clk member is not an error pointer. Fix these problems with devm_clk_get() and proper error checking. Removing the clk_put() in msm_serial_remove() also points out that msm_port is unused. Furthermore, msm_port is the wrong type and so the clk_put() would be using the wrong pointer. Replace it with the proper type and call uart_remove_one_port() to do the proper cleanup. Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'drivers/usb')
0 files changed, 0 insertions, 0 deletions