summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Marko <robert.marko@sartura.hr>2020-10-28 13:56:23 +0100
committerTom Rini <trini@konsulko.com>2020-12-01 14:12:28 -0500
commit90534536a3a13672305ae4ff4ffcd4df9d7a4187 (patch)
tree12d024063880b38952240c0099df0ec247ef9ea5
parent48aee0afb62ee4ce11dd882600cfbcda60efb563 (diff)
downloadu-boot-90534536a3a13672305ae4ff4ffcd4df9d7a4187.tar.gz
IPQ40xx: clk: use dev_read_addr()
Lets convert the driver to use dev_read_addr() instead of the devfdt_get_addr(). While we are here, lets also alphabetise the includes. Signed-off-by: Robert Marko <robert.marko@sartura.hr> Cc: Luka Perkov <luka.perkov@sartura.hr>
-rw-r--r--arch/arm/mach-ipq40xx/clock-ipq4019.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-ipq40xx/clock-ipq4019.c b/arch/arm/mach-ipq40xx/clock-ipq4019.c
index 31ae9719e8..1f385665cc 100644
--- a/arch/arm/mach-ipq40xx/clock-ipq4019.c
+++ b/arch/arm/mach-ipq40xx/clock-ipq4019.c
@@ -8,8 +8,8 @@
*
*/
-#include <common.h>
#include <clk-uclass.h>
+#include <common.h>
#include <dm.h>
#include <errno.h>
@@ -35,7 +35,7 @@ static int msm_clk_probe(struct udevice *dev)
{
struct msm_clk_priv *priv = dev_get_priv(dev);
- priv->base = devfdt_get_addr(dev);
+ priv->base = dev_read_addr(dev);
if (priv->base == FDT_ADDR_T_NONE)
return -EINVAL;