projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
treewide: replace with error() with pr_err()
[oweals/u-boot.git]
/
drivers
/
spi
/
mvebu_a3700_spi.c
diff --git
a/drivers/spi/mvebu_a3700_spi.c
b/drivers/spi/mvebu_a3700_spi.c
index 7c58c3661fa2c06cf35894df811a2803fde017ed..ec4907391ca920a3f1ab45e78bd279d816008e4c 100644
(file)
--- a/
drivers/spi/mvebu_a3700_spi.c
+++ b/
drivers/spi/mvebu_a3700_spi.c
@@
-251,7
+251,7
@@
static int mvebu_spi_ofdata_to_platdata(struct udevice *bus)
{
struct mvebu_spi_platdata *plat = dev_get_platdata(bus);
{
struct mvebu_spi_platdata *plat = dev_get_platdata(bus);
- plat->spireg = (struct spi_reg *)dev_get_addr(bus);
+ plat->spireg = (struct spi_reg *)dev
fdt
_get_addr(bus);
/*
* FIXME
/*
* FIXME
@@
-261,9
+261,9
@@
static int mvebu_spi_ofdata_to_platdata(struct udevice *bus)
* it should be used to read the input clock and the DT property
* can be removed.
*/
* it should be used to read the input clock and the DT property
* can be removed.
*/
- plat->clock = fdtdec_get_int(gd->fdt_blob,
bus->of_offset
,
+ plat->clock = fdtdec_get_int(gd->fdt_blob,
dev_of_offset(bus)
,
"clock-frequency", 160000);
"clock-frequency", 160000);
- plat->frequency = fdtdec_get_int(gd->fdt_blob,
bus->of_offset
,
+ plat->frequency = fdtdec_get_int(gd->fdt_blob,
dev_of_offset(bus)
,
"spi-max-frequency", 40000);
return 0;
"spi-max-frequency", 40000);
return 0;