From patchwork Mon Sep 11 09:18:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Tomsich X-Patchwork-Id: 812280 X-Patchwork-Delegate: philipp.tomsich@theobroma-systems.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xrN2p46LKz9sBZ for ; Mon, 11 Sep 2017 19:30:58 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id D75B7C21F6B; Mon, 11 Sep 2017 09:26:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id BEC33C21E93; Mon, 11 Sep 2017 09:26:01 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5E5E5C21EDE; Mon, 11 Sep 2017 09:21:28 +0000 (UTC) Received: from mail.theobroma-systems.com (vegas.theobroma-systems.com [144.76.126.164]) by lists.denx.de (Postfix) with ESMTPS id 6721BC21E70 for ; Mon, 11 Sep 2017 09:21:25 +0000 (UTC) Received: from [86.59.122.178] (port=58983 helo=android.lan) by mail.theobroma-systems.com with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA256:128) (Exim 4.80) (envelope-from ) id 1drKrj-00016d-Go; Mon, 11 Sep 2017 11:18:51 +0200 From: Philipp Tomsich To: u-boot@lists.denx.de Date: Mon, 11 Sep 2017 11:18:16 +0200 Message-Id: <1505121512-23283-11-git-send-email-philipp.tomsich@theobroma-systems.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1505121512-23283-1-git-send-email-philipp.tomsich@theobroma-systems.com> References: <1505121512-23283-1-git-send-email-philipp.tomsich@theobroma-systems.com> Cc: Andy Yan , Klaus Goger Subject: [U-Boot] [PATCH v2 10/19] rockchip: clk: rk3368: Convert to livetree X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Update the clock driver for the RK3368 to support a live device tree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich Version-changes: 2 - use the dev_read_addr_ptr function in clk_rk3368.c --- Changes in v2: None drivers/clk/rockchip/clk_rk3368.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk_rk3368.c b/drivers/clk/rockchip/clk_rk3368.c index 0160d50..e274781 100644 --- a/drivers/clk/rockchip/clk_rk3368.c +++ b/drivers/clk/rockchip/clk_rk3368.c @@ -485,7 +485,7 @@ static int rk3368_clk_ofdata_to_platdata(struct udevice *dev) #if !CONFIG_IS_ENABLED(OF_PLATDATA) struct rk3368_clk_priv *priv = dev_get_priv(dev); - priv->cru = (struct rk3368_cru *)devfdt_get_addr(dev); + priv->cru = dev_read_addr_ptr(dev); #endif return 0;