Skip to content

Commit 6837c00

Browse files
ambaruskrzk
authored andcommitted
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 <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202510211905.RgfWkgss-lkp@intel.com/ Fixes: 40498a7 ("clk: samsung: add Exynos ACPM clock driver") Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org> Link: https://patch.msgid.link/20251021-fix-acpm-clk-build-test-v1-1-236a3d6db7f5@linaro.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent ad97aba commit 6837c00

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

include/linux/firmware/samsung/exynos-acpm-protocol.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,16 @@ struct acpm_handle {
5555

5656
struct device;
5757

58+
#if IS_ENABLED(CONFIG_EXYNOS_ACPM_PROTOCOL)
5859
const struct acpm_handle *devm_acpm_get_by_node(struct device *dev,
5960
struct device_node *np);
61+
#else
62+
63+
static inline const struct acpm_handle *devm_acpm_get_by_node(struct device *dev,
64+
struct device_node *np)
65+
{
66+
return NULL;
67+
}
68+
#endif
6069

6170
#endif /* __EXYNOS_ACPM_PROTOCOL_H */

0 commit comments

Comments
 (0)