mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-18 06:58:54 +00:00
serial_bcm283x_mu: Convert to dev_read
The fdtdec API got deprecated in favor of dev_read calls. Use those instead. Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
71fc2e1459
commit
80d5001c30
1 changed files with 3 additions and 7 deletions
|
@ -23,9 +23,6 @@
|
|||
#include <serial.h>
|
||||
#include <dm/platform_data/serial_bcm283x_mu.h>
|
||||
#include <linux/compiler.h>
|
||||
#include <fdtdec.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
struct bcm283x_mu_regs {
|
||||
u32 io;
|
||||
|
@ -149,10 +146,9 @@ static int bcm283x_mu_serial_ofdata_to_platdata(struct udevice *dev)
|
|||
return -EINVAL;
|
||||
|
||||
plat->base = addr;
|
||||
plat->clock = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), "clock",
|
||||
1);
|
||||
plat->skip_init = fdtdec_get_bool(gd->fdt_blob, dev_of_offset(dev),
|
||||
"skip-init");
|
||||
plat->clock = dev_read_u32_default(dev, "clock", 1);
|
||||
plat->skip_init = dev_read_bool(dev, "skip-init");
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue