summaryrefslogtreecommitdiff
path: root/drivers/spmi/spmi-uclass.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spmi/spmi-uclass.c')
-rw-r--r--drivers/spmi/spmi-uclass.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spmi/spmi-uclass.c b/drivers/spmi/spmi-uclass.c
index 4ddd51b556e..9fa330b8e90 100644
--- a/drivers/spmi/spmi-uclass.c
+++ b/drivers/spmi/spmi-uclass.c
@@ -9,7 +9,6 @@
#include <common.h>
#include <dm.h>
#include <errno.h>
-#include <dm/root.h>
#include <spmi/spmi.h>
#include <linux/ctype.h>
@@ -38,7 +37,7 @@ int spmi_reg_write(struct udevice *dev, int usid, int pid, int reg,
static int spmi_post_bind(struct udevice *dev)
{
- return dm_scan_fdt_node(dev, gd->fdt_blob, dev->of_offset, false);
+ return dm_scan_fdt_dev(dev);
}
UCLASS_DRIVER(spmi) = {