diff options
author | Alexander Graf <agraf@suse.de> | 2018-01-25 14:05:46 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-01-28 20:27:34 +0300 |
commit | 80d5001c30284238e80130c18002e28c33675c14 (patch) | |
tree | 26db74be922427c1c84f38d55f7eaafe19da27e3 /drivers/serial | |
parent | 71fc2e1459cae1ee544664dd454a125f692bddcf (diff) | |
download | u-boot-80d5001c30284238e80130c18002e28c33675c14.tar.xz |
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>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/serial_bcm283x_mu.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/serial/serial_bcm283x_mu.c b/drivers/serial/serial_bcm283x_mu.c index 7ce990b9b8..20dc3defcc 100644 --- a/drivers/serial/serial_bcm283x_mu.c +++ b/drivers/serial/serial_bcm283x_mu.c @@ -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 |