summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-nct3018y.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-nct3018y.c')
-rw-r--r--drivers/rtc/rtc-nct3018y.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-nct3018y.c b/drivers/rtc/rtc-nct3018y.c
index 76c5f464b2da..cea05fca0bcc 100644
--- a/drivers/rtc/rtc-nct3018y.c
+++ b/drivers/rtc/rtc-nct3018y.c
@@ -376,7 +376,7 @@ static long nct3018y_clkout_round_rate(struct clk_hw *hw, unsigned long rate,
if (clkout_rates[i] <= rate)
return clkout_rates[i];
- return 0;
+ return clkout_rates[0];
}
static int nct3018y_clkout_set_rate(struct clk_hw *hw, unsigned long rate,