nvmem: qfprom: Mark core clk as optional
authorLuca Weiss <luca.weiss@fairphone.com>
Fri, 20 Oct 2023 10:55:40 +0000 (11:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Oct 2023 17:19:06 +0000 (19:19 +0200)
commit16724d6ea40a2c9315f5a0d81005dfa4d7a6da24
treeca6b7a33b05f9cf1b584107cb0cccb9c7659b599
parent2399cde86e0f6bdbf26cadb83897f6d270921740
nvmem: qfprom: Mark core clk as optional

On some platforms like sc7280 on non-ChromeOS devices the core clock
cannot be touched by Linux so we cannot provide it. Mark it as optional
as accessing qfprom for reading works without it but we still prohibit
writing if we cannot provide the clock.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20231020105545.216052-2-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/qfprom.c