From: Mark Brown Date: Mon, 30 Mar 2026 18:40:31 +0000 (+0100) Subject: ASoC: jz47xx: Convert to devm_clk_get_enabled() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18cc8cc30b71feaec4d80724917f91782987a4a7;p=thirdparty%2Flinux.git ASoC: jz47xx: Convert to devm_clk_get_enabled() Jihed Chaibi says: The jz4725b, jz4760 and jz4770 Ingenic codec drivers all share the same clock management pattern: the clock is obtained with devm_clk_get() in the platform probe, then manually enabled in the component probe and disabled in the component remove. The clk_prepare_enable() call in the component probe is unchecked, meaning clock enable failures are silently ignored and can lead to register access on unpowered hardware. This series converts all three drivers to devm_clk_get_enabled(), which combines the get, prepare and enable steps and ties the clock lifetime to the device via devres. The now-redundant component remove callbacks and the struct clk pointers in the private structs are removed. --- 18cc8cc30b71feaec4d80724917f91782987a4a7