All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] i2c: cdns: Covert to livetree function
@ 2019-01-18  9:47 Michal Simek
  2019-02-07  5:19 ` Heiko Schocher
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Simek @ 2019-01-18  9:47 UTC (permalink / raw
  To: u-boot

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/i2c-cdns.c b/drivers/i2c/i2c-cdns.c
index f2c4b2073c48..4330d28c2b0d 100644
--- 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 *)devfdt_get_addr(dev);
+	i2c_bus->regs = (struct cdns_i2c_regs *)dev_read_addr(dev);
 	if (!i2c_bus->regs)
 		return -ENOMEM;
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] i2c: cdns: Covert to livetree function
  2019-01-18  9:47 [U-Boot] [PATCH] i2c: cdns: Covert to livetree function Michal Simek
@ 2019-02-07  5:19 ` Heiko Schocher
  0 siblings, 0 replies; 2+ messages in thread
From: Heiko Schocher @ 2019-02-07  5:19 UTC (permalink / raw
  To: u-boot

Hello Michal,

Am 18.01.2019 um 10:47 schrieb Michal Simek:
> 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 | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Sorry for the long delay...

Reviewed-by: Heiko Schocher <hs@denx.de>

Thanks!

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-07  5:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-18  9:47 [U-Boot] [PATCH] i2c: cdns: Covert to livetree function Michal Simek
2019-02-07  5:19 ` Heiko Schocher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.