diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2021-09-07 14:45:11 +0200 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2021-09-13 11:19:05 +0200 |
commit | a7b68ed15d1fd72c1e451d5eb6edebee2a624b90 (patch) | |
tree | ac562a592bd3035a1d74dc76c2e11a89150c9605 /arch/m68k/mvme16x | |
parent | b1a89856fbf63fffde6a4771d8f1ac21df549e50 (diff) | |
download | linux-a7b68ed15d1fd72c1e451d5eb6edebee2a624b90.tar.gz linux-a7b68ed15d1fd72c1e451d5eb6edebee2a624b90.tar.bz2 linux-a7b68ed15d1fd72c1e451d5eb6edebee2a624b90.zip |
m68k: mvme: Remove overdue #warnings in RTC handling
The warnings were introduced when converting the MVME147 and MVME16x
RTC handling from gettod to hwclk. Replace the #warning by a comment,
and return an error to inform the upper layer that writing to the RTC is
not yet supported.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210907124511.2723414-1-geert@linux-m68k.org
Diffstat (limited to 'arch/m68k/mvme16x')
-rw-r--r-- | arch/m68k/mvme16x/config.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/m68k/mvme16x/config.c b/arch/m68k/mvme16x/config.c index b59593c7cfb9..b4422c2dfbbf 100644 --- a/arch/m68k/mvme16x/config.c +++ b/arch/m68k/mvme16x/config.c @@ -436,7 +436,6 @@ int bcd2int (unsigned char b) int mvme16x_hwclk(int op, struct rtc_time *t) { -#warning check me! if (!op) { rtc->ctrl = RTC_READ; t->tm_year = bcd2int (rtc->bcd_year); @@ -448,6 +447,9 @@ int mvme16x_hwclk(int op, struct rtc_time *t) rtc->ctrl = 0; if (t->tm_year < 70) t->tm_year += 100; + } else { + /* FIXME Setting the time is not yet supported */ + return -EOPNOTSUPP; } return 0; } |