]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
IPQ40xx: clk: use dev_read_addr()
authorRobert Marko <robert.marko@sartura.hr>
Wed, 28 Oct 2020 12:56:23 +0000 (13:56 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 1 Dec 2020 19:12:28 +0000 (14:12 -0500)
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>
arch/arm/mach-ipq40xx/clock-ipq4019.c

index 31ae9719e82c16c2017d66d462846013616fd8c0..1f385665ccbbde9a326eaa0f340d9a60607b3f83 100644 (file)
@@ -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;