Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rtc: amlogic-a4: drop error messages

Drop error message because there is a high probability they will never be
seen and the final user action is clear, the time has to be set again.

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20241112143652.3445648-1-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

+5 -15
+5 -15
drivers/rtc/rtc-amlogic-a4.c
··· 102 102 u32 time_sec; 103 103 104 104 /* if RTC disabled, read time failed */ 105 - if (!rtc->rtc_enabled) { 106 - dev_err(dev, "RTC disabled, read time failed\n"); 105 + if (!rtc->rtc_enabled) 107 106 return -EINVAL; 108 - } 109 107 110 108 regmap_read(rtc->map, RTC_REAL_TIME, &time_sec); 111 109 if (rtc->config->gray_stored) ··· 143 145 time64_t alarm_sec; 144 146 145 147 /* if RTC disabled, set alarm failed */ 146 - if (!rtc->rtc_enabled) { 147 - dev_err(dev, "RTC disabled, set alarm failed\n"); 148 + if (!rtc->rtc_enabled) 148 149 return -EINVAL; 149 - } 150 150 151 151 regmap_update_bits(rtc->map, RTC_CTRL, 152 152 RTC_ALRM0_EN, RTC_ALRM0_EN); ··· 170 174 int alarm_mask; 171 175 172 176 /* if RTC disabled, read alarm failed */ 173 - if (!rtc->rtc_enabled) { 174 - dev_err(dev, "RTC disabled, read alarm failed\n"); 177 + if (!rtc->rtc_enabled) 175 178 return -EINVAL; 176 - } 177 179 178 180 regmap_read(rtc->map, RTC_ALARM0_REG, &alarm_sec); 179 181 if (rtc->config->gray_stored) ··· 195 201 int sign, match_counter, enable; 196 202 197 203 /* if RTC disabled, read offset failed */ 198 - if (!rtc->rtc_enabled) { 199 - dev_err(dev, "RTC disabled, read offset failed\n"); 204 + if (!rtc->rtc_enabled) 200 205 return -EINVAL; 201 - } 202 206 203 207 regmap_read(rtc->map, RTC_SEC_ADJUST_REG, &reg_val); 204 208 enable = FIELD_GET(RTC_ADJ_VALID, reg_val); ··· 223 231 u32 reg_val; 224 232 225 233 /* if RTC disabled, set offset failed */ 226 - if (!rtc->rtc_enabled) { 227 - dev_err(dev, "RTC disabled, set offset failed\n"); 234 + if (!rtc->rtc_enabled) 228 235 return -EINVAL; 229 - } 230 236 231 237 if (offset) { 232 238 enable = 1;