projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89fe08b
)
i2c: cdns: Convert to livetree function
author
Michal Simek
<michal.simek@xilinx.com>
Fri, 18 Jan 2019 09:43:39 +0000
(10:43 +0100)
committer
Michal Simek
<michal.simek@xilinx.com>
Thu, 24 Jan 2019 09:03:45 +0000
(10:03 +0100)
Update cadence i2c driver to support livetree
Similar changes were done by:
"net: zynq_gem: convert to use livetree"
(sha1:
26026e695afa794ac018a09e79a48120d322b60d
)
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/i2c/i2c-cdns.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/i2c-cdns.c
b/drivers/i2c/i2c-cdns.c
index f2c4b2073c48aa552c3679dd3902c20ca5ca7db7..4330d28c2b0dfbf5512e0bb4e2a8d1e81033565f 100644
(file)
--- a/
drivers/i2c/i2c-cdns.c
+++ b/
drivers/i2c/i2c-cdns.c
@@
-419,7
+419,7
@@
static int cdns_i2c_ofdata_to_platdata(struct udevice *dev)
struct clk clk;
int ret;
- i2c_bus->regs = (struct cdns_i2c_regs *)dev
fdt_get
_addr(dev);
+ i2c_bus->regs = (struct cdns_i2c_regs *)dev
_read
_addr(dev);
if (!i2c_bus->regs)
return -ENOMEM;