[PATCH] rtc: Add fallbacks for dm functions
Tom Rini
trini at konsulko.com
Tue Oct 11 21:40:30 CEST 2022
On Fri, Sep 23, 2022 at 02:30:16PM -0400, Sean Anderson wrote:
> This adds fallbacks for the various dm_rtc_* functions. This allows
> common code to use these functions without ifdefs.
>
> Fixes: c8ce7ba87d1 ("misc: Add support for nvmem cells")
> Signed-off-by: Sean Anderson <sean.anderson at seco.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
This breaks a number of platforms such as malta64el:
+include/rtc.h: In function 'dm_rtc_get':
+include/rtc.h:225:17: error: 'ENOSYS' undeclared (first use in this function)
+ 225 | return -ENOSYS;
+ | ^~~~~~
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20221011/8c9b9d79/attachment.sig>
More information about the U-Boot
mailing list