Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c59b3715 authored by Alexandre Belloni's avatar Alexandre Belloni
Browse files

rtc: nvmem: don't return an error when not enabled



Avoid reporting an error when RTC_NVMEM is not selected.

Reported-by: default avatarkernel test robot <xiaolong.ye@intel.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 5aa6a62d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -285,7 +285,7 @@ void rtc_nvmem_unregister(struct rtc_device *rtc);
static inline int rtc_nvmem_register(struct rtc_device *rtc,
				     struct nvmem_config *nvmem_config)
{
	return -ENODEV;
	return 0;
}
static inline void rtc_nvmem_unregister(struct rtc_device *rtc) {}
#endif