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: 9501475 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 61E676021C for ; Fri, 6 Jan 2017 16:32:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 45CC3284F3 for ; Fri, 6 Jan 2017 16:32:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A3D3284F9; Fri, 6 Jan 2017 16:32:06 +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 3FF01284F3 for ; Fri, 6 Jan 2017 16:32:05 +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 1cPXQx-00041q-QF; Fri, 06 Jan 2017 16:32:03 +0000 Received: from mail-pf0-x230.google.com ([2607:f8b0:400e:c00::230]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cPXQi-0003ep-4R for linux-rockchip@lists.infradead.org; Fri, 06 Jan 2017 16:31:49 +0000 Received: by mail-pf0-x230.google.com with SMTP id 127so14980523pfg.1 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=cMAXWxy0PvsTUXZX+sxpz9mJRXpUEZgajuR++tF1za+1Hr2PeW3+ALmif/5rbv6eFi GgB6b6m8L2SNnTJga0zsXayU191qbLBD7h8wf8yAUiz3fYkHXQX3OPWBCFtLeB2requ7 N+zBVVfWyX82L3nFaIEfbQwJXjINQKl2HJ/JPbHx0vQ5MBU7ANrPMmutwwioniRpJCIc WLWOmWD3YezMBq2gWex+LBS81WgKUhHBx4koNih/50KYTTXMfZPY+0KEp3MwHL/6PAvn zy/Rdr7HyquYJJ3Kuv97ictQ2U/ij5AyWhq8XQne/ciibUlu0IKg6q9cDRFzXrNXenlh NpBA== X-Gm-Message-State: AIkVDXL0ftIpWmZJTMLs2wFhPEsiyDU1oRuA7KM0x0xVKp66XVwLFbgPyejtY5N0A5+2VQtM 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_083148_201447_69EE62AA X-CRM114-Status: UNSURE ( 8.24 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms 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-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=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,