projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge git://git.denx.de/u-boot-dm
[oweals/u-boot.git]
/
drivers
/
spi
/
designware_spi.c
diff --git
a/drivers/spi/designware_spi.c
b/drivers/spi/designware_spi.c
index 8f5c0fc8029d6b862bbbf1962ae55a27d80ec531..86ee90f4be50f796550ed17437d68b357f0ba861 100644
(file)
--- a/
drivers/spi/designware_spi.c
+++ b/
drivers/spi/designware_spi.c
@@
-134,7
+134,7
@@
static int dw_spi_ofdata_to_platdata(struct udevice *bus)
const void *blob = gd->fdt_blob;
int node = bus->of_offset;
const void *blob = gd->fdt_blob;
int node = bus->of_offset;
- plat->regs = (struct dw_spi *)
fdtdec_get_addr(blob, node, "reg"
);
+ plat->regs = (struct dw_spi *)
dev_get_addr(bus
);
/* Use 500KHz as a suitable default */
plat->frequency = fdtdec_get_int(blob, node, "spi-max-frequency",
/* Use 500KHz as a suitable default */
plat->frequency = fdtdec_get_int(blob, node, "spi-max-frequency",