public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Álvaro Fernández Rojas" <noltari@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 16/17] phy: bcm6368-usbh: convert to use live dt
Date: Thu, 22 Mar 2018 19:39:42 +0100	[thread overview]
Message-ID: <20180322183943.5466-17-noltari@gmail.com> (raw)
In-Reply-To: <20180322183943.5466-1-noltari@gmail.com>

Also fix bad accents in my name.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
---
 drivers/phy/bcm6368-usbh-phy.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/drivers/phy/bcm6368-usbh-phy.c b/drivers/phy/bcm6368-usbh-phy.c
index 71abc0fcc4..2c4288c9b8 100644
--- a/drivers/phy/bcm6368-usbh-phy.c
+++ b/drivers/phy/bcm6368-usbh-phy.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2018 Álvaro Fernández Rojas <noltari@gmail.com>
+ * Copyright (C) 2018 Álvaro Fernández Rojas <noltari@gmail.com>
  *
  * Derived from linux/arch/mips/bcm63xx/usb-common.c:
  *	Copyright 2008 Maxime Bizon <mbizon@freebox.fr>
@@ -117,15 +117,12 @@ static int bcm6368_usbh_probe(struct udevice *dev)
 #endif
 	struct reset_ctl rst_ctl;
 	struct clk clk;
-	fdt_addr_t addr;
-	fdt_size_t size;
 	int ret;
 
-	addr = devfdt_get_addr_size_index(dev, 0, &size);
-	if (addr == FDT_ADDR_T_NONE)
+	priv->regs = dev_remap_addr(dev);
+	if (!priv->regs)
 		return -EINVAL;
 
-	priv->regs = ioremap(addr, size);
 	priv->hw = hw;
 
 	/* enable usbh clock */
-- 
2.11.0

  parent reply	other threads:[~2018-03-22 18:39 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-22 18:39 [U-Boot] [PATCH v2 00/17] bmips: convert to use live-dt Álvaro Fernández Rojas
2018-03-22 18:39 ` [U-Boot] [PATCH v2 01/17] dm: core: add functions to get memory-mapped I/O addreses Álvaro Fernández Rojas
2018-03-23 14:34   ` Daniel Schwierzeck
2018-03-23 17:15     ` Álvaro Fernández Rojas
2018-03-23 17:36       ` Daniel Schwierzeck
2018-03-23 17:45   ` Daniel Schwierzeck
2018-04-06 12:45   ` Daniel Schwierzeck
2018-04-08 13:50     ` Simon Glass
2018-03-22 18:39 ` [U-Boot] [PATCH v2 02/17] watchdog: bcm6345: convert to use live dt Álvaro Fernández Rojas
2018-03-23 17:46   ` Daniel Schwierzeck
2018-03-22 18:39 ` [U-Boot] [PATCH v2 03/17] serial: " Álvaro Fernández Rojas
2018-03-23 17:46   ` Daniel Schwierzeck
2018-03-22 18:39 ` [U-Boot] [PATCH v2 04/17] clk: " Álvaro Fernández Rojas
2018-03-23 17:47   ` Daniel Schwierzeck
2018-03-22 18:39 ` [U-Boot] [PATCH v2 05/17] reset: " Álvaro Fernández Rojas
2018-03-23 17:47   ` Daniel Schwierzeck
2018-03-22 18:39 ` [U-Boot] [PATCH v2 06/17] gpio: " Álvaro Fernández Rojas
2018-03-23 17:48   ` Daniel Schwierzeck
2018-03-22 18:39 ` [U-Boot] [PATCH v2 07/17] led: bcm6358: " Álvaro Fernández Rojas
2018-03-23 17:50   ` Daniel Schwierzeck
2018-03-22 18:39 ` [U-Boot] [PATCH v2 08/17] led: bcm6328: " Álvaro Fernández Rojas
2018-03-23 17:51   ` Daniel Schwierzeck
2018-03-22 18:39 ` [U-Boot] [PATCH v2 09/17] power: domain: " Álvaro Fernández Rojas
2018-03-23 17:52   ` Daniel Schwierzeck
2018-03-22 18:39 ` [U-Boot] [PATCH v2 10/17] spi: bcm63xx_spi: " Álvaro Fernández Rojas
2018-03-23 17:52   ` Daniel Schwierzeck
2018-03-22 18:39 ` [U-Boot] [PATCH v2 11/17] spi: bcm63xx_hsspi: " Álvaro Fernández Rojas
2018-03-23 17:53   ` Daniel Schwierzeck
2018-03-22 18:39 ` [U-Boot] [PATCH v2 12/17] ram: bmips: " Álvaro Fernández Rojas
2018-03-23 17:54   ` Daniel Schwierzeck
2018-03-22 18:39 ` [U-Boot] [PATCH v2 13/17] cpu: " Álvaro Fernández Rojas
2018-03-23 17:55   ` Daniel Schwierzeck
2018-03-22 18:39 ` [U-Boot] [PATCH v2 14/17] phy: bcm6348-usbh: " Álvaro Fernández Rojas
2018-03-23 18:00   ` Daniel Schwierzeck
2018-03-22 18:39 ` [U-Boot] [PATCH v2 15/17] phy: bcm6358-usbh: " Álvaro Fernández Rojas
2018-03-23 18:01   ` Daniel Schwierzeck
2018-03-22 18:39 ` Álvaro Fernández Rojas [this message]
2018-03-23 18:01   ` [U-Boot] [PATCH v2 16/17] phy: bcm6368-usbh: " Daniel Schwierzeck
2018-03-22 18:39 ` [U-Boot] [PATCH v2 17/17] phy: bcm6318-usbh: " Álvaro Fernández Rojas
2018-03-23 18:02   ` Daniel Schwierzeck
2018-05-06 19:36 ` [U-Boot] [PATCH v2 00/17] bmips: convert to use live-dt Daniel Schwierzeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180322183943.5466-17-noltari@gmail.com \
    --to=noltari@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox