aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2020-05-12 15:43:25 +0200
committerMark Brown <[email protected]>2020-05-12 17:14:36 +0100
commit03990fd58d2b7c8f7d53e514ba9b8749fac260f9 (patch)
tree157fd7c49d9d9cd6a74179dec12b4f8d024e6951 /drivers/usb/cdns3/cdns3-debug.h
parentcc2d025a81a9f9ed4d05f4f65f43a183d6f18c0c (diff)
ASoC: ti: omap-mcbsp: Fix an error handling path in 'asoc_mcbsp_probe()'
If an error occurs after the call to 'omap_mcbsp_init()', the reference to 'mcbsp->fclk' must be decremented, as already done in the remove function. This can be achieved easily by using the devm_ variant of 'clk_get()' when the reference is taken in 'omap_mcbsp_init()' This fixes the leak in the probe and has the side effect to simplify both the error handling path of 'omap_mcbsp_init()' and the remove function. Signed-off-by: Christophe JAILLET <[email protected]> Acked-by: Peter Ujfalusi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions