summaryrefslogtreecommitdiff
path: root/drivers/dax/hmem/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dax/hmem/device.c')
-rw-r--r--drivers/dax/hmem/device.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dax/hmem/device.c b/drivers/dax/hmem/device.c
index f9e1a76a04a9..56e3cbd181b5 100644
--- a/drivers/dax/hmem/device.c
+++ b/drivers/dax/hmem/device.c
@@ -83,8 +83,7 @@ static __init int hmem_register_one(struct resource *res, void *data)
static __init int hmem_init(void)
{
- walk_iomem_res_desc(IORES_DESC_SOFT_RESERVED,
- IORESOURCE_MEM, 0, -1, NULL, hmem_register_one);
+ walk_soft_reserve_res(0, -1, NULL, hmem_register_one);
return 0;
}