firmware: exynos-acpm: add empty method to allow compile test

Provide empty method for devm_acpm_get_by_node() if we aren't
building in the CONFIG_EXYNOS_ACPM_PROTOCOL. This allows to
test-build the CONFIG_EXYNOS_ACPM_CLK code.

Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Fixes: 40498a7420 ("clk: samsung: add Exynos ACPM clock driver")
Signed-off-by: Tudor Ambarus <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Krzysztof Kozlowski <[email protected]>
This commit is contained in:
Tudor Ambarus authored and Krzysztof Kozlowski committed 2025-10-22 07:49:38 +02:00
1 parent ad97aba3e6
commit 6837c006d4
1 file changed
+9
@@ -55,7 +55,16 @@ struct acpm_handle {
struct device;
#if IS_ENABLED(CONFIG_EXYNOS_ACPM_PROTOCOL)
const struct acpm_handle *devm_acpm_get_by_node(struct device *dev,
struct device_node *np);
#else
static inline const struct acpm_handle *devm_acpm_get_by_node(struct device *dev,
struct device_node *np)
{
return NULL;
}
#endif
#endif /* __EXYNOS_ACPM_PROTOCOL_H */