aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc/pci-keystone.c
diff options
context:
space:
mode:
authorMiaoqian Lin <[email protected]>2022-04-03 05:49:12 +0000
committerAlexandre Belloni <[email protected]>2022-05-19 10:08:17 +0000
commitb520cbe5be37b1b9b401c0b6ecbdae32575273db (patch)
treeee4314e7731321835081d05f1d3ce6e8834d1f6d /drivers/pci/controller/dwc/pci-keystone.c
parentrtc: mt6397: check return value after calling platform_get_resource() (diff)
downloadkernel-b520cbe5be37b1b9b401c0b6ecbdae32575273db.tar.gz
kernel-b520cbe5be37b1b9b401c0b6ecbdae32575273db.zip
rtc: ftrtc010: Fix error handling in ftrtc010_rtc_probe
In the error handling path, the clk_prepare_enable() function call should be balanced by a corresponding 'clk_disable_unprepare()' call , as already done in the remove function. clk_disable_unprepare calls clk_disable() and clk_unprepare(). They will use IS_ERR_OR_NULL to check the argument. Fixes: ac05fba39cc5 ("rtc: gemini: Add optional clock handling") Signed-off-by: Miaoqian Lin <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/pci/controller/dwc/pci-keystone.c')
0 files changed, 0 insertions, 0 deletions