Skip to content
Snippets Groups Projects
Commit 38e670b0 authored by Troy Kisky's avatar Troy Kisky
Browse files

dm: device.h: check CONFIG_IS_ENABLED(DM) before using devres functions

parent faa78acd
No related branches found
No related tags found
No related merge requests found
...@@ -628,7 +628,7 @@ int dm_scan_fdt_dev(struct udevice *dev); ...@@ -628,7 +628,7 @@ int dm_scan_fdt_dev(struct udevice *dev);
typedef void (*dr_release_t)(struct udevice *dev, void *res); typedef void (*dr_release_t)(struct udevice *dev, void *res);
typedef int (*dr_match_t)(struct udevice *dev, void *res, void *match_data); typedef int (*dr_match_t)(struct udevice *dev, void *res, void *match_data);
#ifdef CONFIG_DEVRES #if defined(CONFIG_DEVRES) && CONFIG_IS_ENABLED(DM)
#ifdef CONFIG_DEBUG_DEVRES #ifdef CONFIG_DEBUG_DEVRES
void *__devres_alloc(dr_release_t release, size_t size, gfp_t gfp, void *__devres_alloc(dr_release_t release, size_t size, gfp_t gfp,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment