提交 06069066 编写于 作者: Á Álvaro Fernández Rojas 提交者: Tom Rini

sysreset: syscon: convert to use live dt

Signed-off-by: NÁlvaro Fernández Rojas <noltari@gmail.com>
Reviewed-by: NDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
上级 2600df4f
......@@ -15,8 +15,6 @@
#include <sysreset.h>
#include <syscon.h>
DECLARE_GLOBAL_DATA_PTR;
struct syscon_reboot_priv {
struct regmap *regmap;
unsigned int offset;
......@@ -55,10 +53,8 @@ int syscon_reboot_probe(struct udevice *dev)
return -ENODEV;
}
priv->offset = fdtdec_get_uint(gd->fdt_blob, dev_of_offset(dev),
"offset", 0);
priv->mask = fdtdec_get_uint(gd->fdt_blob, dev_of_offset(dev),
"mask", 0);
priv->offset = dev_read_u32_default(dev, "offset", 0);
priv->mask = dev_read_u32_default(dev, "mask", 0);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册