diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/dm/devres.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/dm/devres.h b/include/dm/devres.h index 27761deb6d1..406d18686f4 100644 --- a/include/dm/devres.h +++ b/include/dm/devres.h @@ -207,7 +207,8 @@ void devm_kfree(struct udevice *dev, void *ptr); /* Get basic stats on allocations */ void devres_get_stats(const struct udevice *dev, struct devres_stats *stats); -#else /* ! DEVRES */ +#elif IS_ENABLED(CONFIG_DEVRES) && defined(CONFIG_XPL_BUILD) +/* Allow these to be dummy functions in xPL builds. */ static inline void *devres_alloc(dr_release_t release, size_t size, gfp_t gfp) { |
