From patchwork Wed Oct 28 12:56:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 1389255 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sartura.hr Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=sartura-hr.20150623.gappssmtp.com header.i=@sartura-hr.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=kT8FZXSA; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CLpW16w5jz9sVt for ; Wed, 28 Oct 2020 23:56:50 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 04FAC82430; Wed, 28 Oct 2020 13:56:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sartura.hr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=sartura-hr.20150623.gappssmtp.com header.i=@sartura-hr.20150623.gappssmtp.com header.b="kT8FZXSA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3A0C5823F4; Wed, 28 Oct 2020 13:56:35 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AAAFB823F4 for ; Wed, 28 Oct 2020 13:56:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sartura.hr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=robert.marko@sartura.hr Received: by mail-wm1-x341.google.com with SMTP id 13so4456078wmf.0 for ; Wed, 28 Oct 2020 05:56:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ebHHzkf2mgVDhCKvhAPEpDKM7soaBmY8UVTqlqpKUm0=; b=kT8FZXSA0oEtU20a2x/PDe06F3GzPA9p7zsdwyMGnhZtDFfBhEK9TDGalCe3C7x/xP qs0pwAly8VXgaWLV3F36gWRzgVztpYJyjrAvJEUl7mRwf8kNgvetpLLjkTJ1kHZTrn6R jcXRxo7RlJml8bqoURCeMjUqFoxOJBMsFP0B5n5CPKt3S+Ti950CKFIcFqjbyeRF5/M9 QZAj4qO5YYUxohd3MIG7QWwDovEBmt1qMfs1e6ii0vnKjFexRZs1NR4gkECw3G8p3Q22 aPsEVUb7QIpxfSdQ952IsgSQO8bBlkZhGdG+QzhsGLANcikSlHTY1wkW1hD5kmCgSWYE jP0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ebHHzkf2mgVDhCKvhAPEpDKM7soaBmY8UVTqlqpKUm0=; b=rN6txyIAXpfIzx4LQYS3Vcw1+4NbZjXlORTmZHm622GF51GVXwfkbE/VZz8d7jxFfb F6xnrmJmIaFFZgWV/gM6IffIHJxzN/qHMei14F5zsxQ2z6sN5/vgoBnrifgBs/QO5wDv 5BqEMu4VnhNzhzh2KpKozMq0gUQJd/eAWOjXQhO5ltoyuQZCPE6XV77IvV9B2chbX91q TaPnGNNTFWom9TWKwVeGsa3TTDZ9i/ya4Zn6xL6y8P1XGjonTAxByEJXRrKc4guGYJZT qH9oyrlCPiDxkSxHbq5dptAYaU5Cip1RfMsPZpXJMrj6yI8q0TCWUW71yw4O2tH45HJg QF4Q== X-Gm-Message-State: AOAM531ZYBVjIKltsGAVEOadovKwmJOR6G8lcszAI1kZk7FYalOmTOOB j4W1pzW5C/1IHMCln1vmAnejtFqy2xeT+OLCRCtjkPLamLbJMmaGIEpozWgKc7BUNdJsKB59yru jG/rOJoyiClD10YBuRNSgXdvai9DpBY/8YO6USw/ZSDrEJPjtaORSbf53ckpLuCB6NhAdoc77 X-Google-Smtp-Source: ABdhPJwOEf4qqB8bZrMCJwS9aa/4L428As5OThRu+sM7pu3C+3jHPNA4ks0Tkt/2jOdjWUCleG5QtQ== X-Received: by 2002:a1c:a90e:: with SMTP id s14mr8356229wme.46.1603889791923; Wed, 28 Oct 2020 05:56:31 -0700 (PDT) Received: from localhost.localdomain (dh207-98-200.xnet.hr. [88.207.98.200]) by smtp.googlemail.com with ESMTPSA id q10sm6743233wrp.83.2020.10.28.05.56.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2020 05:56:31 -0700 (PDT) From: Robert Marko To: u-boot@lists.denx.de Cc: Robert Marko , Luka Perkov Subject: [PATCH 1/4] IPQ40xx: clk: use dev_read_addr() Date: Wed, 28 Oct 2020 13:56:23 +0100 Message-Id: <20201028125626.40067-1-robert.marko@sartura.hr> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean 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 Cc: Luka Perkov --- arch/arm/mach-ipq40xx/clock-ipq4019.c | 4 ++-- 1 file 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 #include +#include #include #include @@ -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;