mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-23 13:56:20 +00:00
reset: socfpga: convert to livetree
Convert 'socfpga_reset_probe' to use 'dev_read_u32_default' instead of 'fdtdec_get_int'. Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
This commit is contained in:
parent
41b22c0acc
commit
6cdd0a4e54
1 changed files with 1 additions and 3 deletions
|
@ -107,14 +107,12 @@ static const struct reset_ops socfpga_reset_ops = {
|
|||
static int socfpga_reset_probe(struct udevice *dev)
|
||||
{
|
||||
struct socfpga_reset_data *data = dev_get_priv(dev);
|
||||
const void *blob = gd->fdt_blob;
|
||||
int node = dev_of_offset(dev);
|
||||
u32 modrst_offset;
|
||||
void __iomem *membase;
|
||||
|
||||
membase = devfdt_get_addr_ptr(dev);
|
||||
|
||||
modrst_offset = fdtdec_get_int(blob, node, "altr,modrst-offset", 0x10);
|
||||
modrst_offset = dev_read_u32_default(dev, "altr,modrst-offset", 0x10);
|
||||
data->modrst_base = membase + modrst_offset;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue