From patchwork Fri Jan 6 16:31:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 9501473 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 758286021C for ; Fri, 6 Jan 2017 16:31:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 60F12205AF for ; Fri, 6 Jan 2017 16:31:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 55CD7284F3; Fri, 6 Jan 2017 16:31:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EB55A205AF for ; Fri, 6 Jan 2017 16:31:53 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cPXQl-0003lV-9p; Fri, 06 Jan 2017 16:31:51 +0000 Received: from mail-pf0-x232.google.com ([2607:f8b0:400e:c00::232]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cPXQh-0003eq-R8 for linux-arm-kernel@lists.infradead.org; Fri, 06 Jan 2017 16:31:49 +0000 Received: by mail-pf0-x232.google.com with SMTP id d2so94924645pfd.0 for ; Fri, 06 Jan 2017 08:31:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=v8zsWYURoF/0f2pCqjMpeUpb9VL7FXAN4VcNWOBx1dw=; b=BJJTLSnNGJdSg/ARrK3zr2aBBo+ouo3/pq0l8DKaAdAC7FWe5Xed70te8suDqG10R/ jrhQuP95ETbgmBofNfiq0p7b/eHAOF5/oUAHOGv5stMQxJItrTTNeRAGcrnvtJ/iebX6 F4XfI2I3JjbNS2zUeThZNSCQeiZvYqNWR3+vs= 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; bh=v8zsWYURoF/0f2pCqjMpeUpb9VL7FXAN4VcNWOBx1dw=; b=Dso3EplLp7eVekyDHOovbFi8Ne3mAtBJFaqjF1OS8jtKA/k+se6qGQZsZUFzwFSS8u l2nBJ7iwnwwfXBfwjYFbzjpgl+Y//mXHC/8/A1XzkNNbqcwO7kv13SCXy2HsKo6n9mYK DbKjcBlr97SNdBIxAE7HL82cleUQOOp971yEkKbCjvDTcOhFGK7ruf7pAW+QfEhbVBEk aatDr3hieZiZBID2KFyBGU5DUH0yV6pOaULU/lQA/watuvIpzMwegvsUHH+xzBeiT5xW uJKDlu5OVEpAlJcDu8DXxFX8z0PTJatuNMBWMBl/WZH+AxXHUAdTiOPPBkCN8lxVdMAM dnuA== X-Gm-Message-State: AIkVDXLJGics33NCe0afD+vh9+cxvkyjaWqwoWVdYlcLtIDPwx5Q+irp9j2cF/gNcUeuACUN X-Received: by 10.99.19.65 with SMTP id 1mr84254147pgt.153.1483720286145; Fri, 06 Jan 2017 08:31:26 -0800 (PST) Received: from tictac.mtv.corp.google.com ([172.22.65.76]) by smtp.gmail.com with ESMTPSA id r68sm151736816pfk.85.2017.01.06.08.31.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Jan 2017 08:31:24 -0800 (PST) From: Douglas Anderson To: Heiko Stuebner Subject: [PATCH] clk: rockchip: Remove useless init of "grf" to -EPROBE_DEFER Date: Fri, 6 Jan 2017 08:31:01 -0800 Message-Id: <20170106163101.32048-1-dianders@chromium.org> X-Mailer: git-send-email 2.11.0.390.gc69c2f50cf-goog X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170106_083147_935912_5672C85A X-CRM114-Status: UNSURE ( 9.67 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mturquette@baylibre.com, sboyd@codeaurora.org, Douglas Anderson , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP When we used to defer setting the "grf" member to rockchip_clk_get_grf() it was important to init the "grf" member to an error value in rockchip_clk_init(). With recent changes, we now set "grf" right in rockchip_clk_init() (two lines below the place where we initted it). That makes the old init useless. Get rid of it. Fixes: 6f339dc2719e ("clk: rockchip: lookup General Register Files in rockchip_clk_init") Signed-off-by: Douglas Anderson --- drivers/clk/rockchip/clk.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/rockchip/clk.c b/drivers/clk/rockchip/clk.c index 3abcbf441cc5..fe1d393cf678 100644 --- a/drivers/clk/rockchip/clk.c +++ b/drivers/clk/rockchip/clk.c @@ -344,7 +344,6 @@ struct rockchip_clk_provider * __init rockchip_clk_init(struct device_node *np, ctx->clk_data.clks = clk_table; ctx->clk_data.clk_num = nr_clks; ctx->cru_node = np; - ctx->grf = ERR_PTR(-EPROBE_DEFER); spin_lock_init(&ctx->lock); ctx->grf = syscon_regmap_lookup_by_phandle(ctx->cru_node,