linux/drivers/clk
Robert Hancock 8fc3bd2c34 clk: si5341: Fix clock HW provider cleanup
commit 49a8f2bc8d upstream.

The call to of_clk_add_hw_provider was not undone on remove or on probe
failure, which could cause an oops on a subsequent attempt to retrieve
clocks for the removed device. Switch to the devm version of the
function to avoid this issue.

Fixes: 3044a860fd ("clk: Add Si5341/Si5340 driver")
Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Link: https://lore.kernel.org/r/20220112203816.1784610-1-robert.hancock@calian.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-27 11:05:31 +01:00
..
actions
analogbits
at91 clk: at91: sama7g5: remove prescaler part of master clock 2021-11-25 09:48:30 +01:00
axis
axs10x
baikal-t1
bcm clk: bcm-2835: Remove rounding up the dividers 2022-01-27 11:03:03 +01:00
berlin
davinci
h8300
hisilicon
imgtec
imx clk: imx8mn: Fix imx8mn_clko1_sels 2022-01-27 11:04:06 +01:00
ingenic clk: ingenic: Fix bugs with divided dividers 2021-11-25 09:48:32 +01:00
keystone
loongson1
mediatek
meson clk: meson: gxbb: Fix the SDM_EN bit for MPLL0 on GXBB 2022-01-27 11:04:58 +01:00
microchip
mmp
mstar
mvebu clk: mvebu: ap-cpu-clk: Fix a memory leak in error handling paths 2021-11-18 19:16:46 +01:00
mxs
nxp
pistachio
pxa
qcom clk: qcom: gcc-sc7280: Mark gcc_cfg_noc_lpass_clk always enabled 2022-01-27 11:04:19 +01:00
ralink
renesas clk: renesas: rzg2l: propagate return value of_genpd_add_provider_simple() 2022-01-27 11:04:06 +01:00
rockchip Merge branches 'clk-nvidia', 'clk-rockchip', 'clk-at91' and 'clk-vc5' into clk-next 2021-09-01 15:26:58 -07:00
samsung
sifive
socfpga clk: socfpga: agilex: fix duplicate s2f_user0_clk 2021-09-24 16:03:08 -07:00
spear
sprd
st
sunxi
sunxi-ng clk: sunxi-ng: Unregister clocks/resets when unbinding 2021-11-25 09:48:23 +01:00
tegra Nothing changed in the clk framework core this time around. We did get 2021-09-02 14:17:24 -07:00
ti
uniphier
ux500
versatile
x86
xilinx
zynq
zynqmp Merge branches 'clk-kirkwood', 'clk-imx', 'clk-doc', 'clk-zynq' and 'clk-ralink' into clk-next 2021-09-01 15:27:07 -07:00
clk-asm9260.c
clk-aspeed.c
clk-aspeed.h
clk-ast2600.c clk/ast2600: Fix soc revision for AHB 2021-11-25 09:48:32 +01:00
clk-axi-clkgen.c
clk-axm5516.c
clk-bd718x7.c
clk-bm1880.c clk: bm1880: remove kfrees on static allocations 2022-01-27 11:04:20 +01:00
clk-bulk.c
clk-cdce706.c
clk-cdce925.c
clk-clps711x.c
clk-composite.c clk: composite: Also consider .determine_rate for rate + mux composites 2021-10-18 12:59:42 -07:00
clk-conf.c
clk-cs2000-cp.c
clk-devres.c
clk-divider.c
clk-fixed-factor.c
clk-fixed-mmio.c
clk-fixed-rate.c
clk-fractional-divider.c
clk-fractional-divider.h
clk-fsl-flexspi.c
clk-fsl-sai.c
clk-gate.c
clk-gemini.c
clk-gpio.c
clk-hi655x.c
clk-highbank.c
clk-hsdk-pll.c
clk-k210.c
clk-lmk04832.c
clk-lochnagar.c
clk-max9485.c
clk-max77686.c
clk-milbeaut.c
clk-moxart.c
clk-multiplier.c
clk-mux.c
clk-nomadik.c
clk-npcm7xx.c
clk-nspire.c
clk-oxnas.c
clk-palmas.c
clk-plldig.c
clk-pwm.c
clk-qoriq.c
clk-rk808.c
clk-s2mps11.c
clk-scmi.c
clk-scpi.c
clk-si514.c
clk-si544.c
clk-si570.c
clk-si5341.c clk: si5341: Fix clock HW provider cleanup 2022-01-27 11:05:31 +01:00
clk-si5351.c
clk-si5351.h
clk-sparx5.c
clk-stm32f4.c clk: stm32: Fix ltdc's clock turn off by clk_disable_unused() after system enter shell 2022-01-27 11:04:12 +01:00
clk-stm32h7.c
clk-stm32mp1.c
clk-twl6040.c
clk-versaclock5.c clk: vc5: Add properties for configuring SD/OE behavior 2021-08-28 23:46:21 -07:00
clk-vt8500.c
clk-wm831x.c
clk-xgene.c
clk.c clk: Emit a stern warning with writable debugfs enabled 2022-01-27 11:05:30 +01:00
clk.h
clkdev.c
Kconfig
Makefile