The JH7110 clock drivers will not register redundant auxiliary
devices if the JH7110 reset auxiliary driver is disabled.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
}
EXPORT_SYMBOL_GPL(starfive_jh71x0_clk_ops);
-#if IS_ENABLED(CONFIG_CLK_STARFIVE_JH7110_SYS)
+#if IS_ENABLED(CONFIG_RESET_STARFIVE_JH7110)
static void jh7110_reset_unregister_adev(void *_adev)
{
}
EXPORT_SYMBOL_GPL(jh7110_reset_controller_register);
+#else /* !CONFIG_RESET_STARFIVE_JH7110 */
+
+int jh7110_reset_controller_register(struct jh71x0_clk_priv *priv,
+ const char *adev_name,
+ u32 adev_id)
+{
+ return 0;
+}
+
#endif