pm: pm_device_runtime_enable/disable should return 0 when PM is disabled
When PM is disabled, it does not make sense to return ENOSYS,
pm_device_runtime_enable/disable should be treated as noop functions.
When PM is disabled, those functions are not supposed to be implemented.
@@ -148,13 +148,13 @@ bool pm_device_runtime_is_enabled(const struct device *dev);
static inline int pm_device_runtime_enable(const struct device *dev)
{
ARG_UNUSED(dev);
- return -ENOSYS;
+ return 0;
}
static inline int pm_device_runtime_disable(const struct device *dev)
{
ARG_UNUSED(dev);
- return -ENOSYS;
+ return 0;
}
static inline int pm_device_runtime_get(const struct device *dev)
