From patchwork Wed Dec 4 17:53:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 180823 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp929313ile; Wed, 4 Dec 2019 10:01:19 -0800 (PST) X-Google-Smtp-Source: APXvYqxo6VbiqKrAjkc7bNc2GxQ7mEAiSKdkEwj9J1kYspCx5x1kj7N4ncqXEw5CUIjHj8NOnMbV X-Received: by 2002:aca:5487:: with SMTP id i129mr3517231oib.167.1575482479551; Wed, 04 Dec 2019 10:01:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575482479; cv=none; d=google.com; s=arc-20160816; b=oHr9aqW2FkPowk5sES4eQsAF5MkUfdcC8fLUNNS1VM7xpfe0N7Saqceh0DtnN6daK0 4AFohjy76dHqbAqBqOGJB4dotXrGqSfvRUS4nquEyStTDSQm3ivVSXWEjiOAFTLowOJd cWbU8Q9KwayUDK9REm+k2jFo0oGMVHw5w3egt5RIldMC+jKRYTblAH8AKk0iL3kG3Hax 328VHoyzXYMzpWgoULKhLi5D8blRoNJ7pGPNKSy70iS5JtIB3BzLgn35AeJXRSQctDzu f7RV63hXCAXRarbUqLe2diS8KnJrNqC+MUdGotF39ec+/Tq5bY3aUsscN6Wymtkdi181 db7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=RmCOXhAWOXW7IG2Dkt84WGjV+8EqG6mMIpWORJGHeBk=; b=jdz+A4otLilwaP9KQkUE2y2WNF1SaxtsIiRISGtKorTZ0D8lUsVD1WL4usVgGq+OyP jF5UyqSpN/KzL+le3/neK+8L85ONKPf1H9o1mAohzF5I/cOjdDkSBAccRpEguMhLq9RC P5MdayWY1pPLacU4wYwKTA5Or/iomvMrvVaSjzpsFxcR8TmcwFcxXthB6g0dCLCq6BMd Gg82EShBvLRYangj9J8LqHY+UF47XZclJ2fnQQvJRinrmTj+uhbz3G9MmbVuYOIiVCXu vr4quDyArK37c+FEPlz9Y/wgZpQOA22RUGU9LqjCRPT4V832IcleLw9D98vG8yQVWBWk lplw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kMYWVfrf; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u130si3633966oif.94.2019.12.04.10.01.19; Wed, 04 Dec 2019 10:01:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kMYWVfrf; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729152AbfLDSBR (ORCPT + 15 others); Wed, 4 Dec 2019 13:01:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:41400 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729160AbfLDSBR (ORCPT ); Wed, 4 Dec 2019 13:01:17 -0500 Received: from localhost (unknown [217.68.49.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6FE4920659; Wed, 4 Dec 2019 18:01:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575482476; bh=HzwGEnNtDZVMMu7FAHSRHg9PbEd0qAwU8A/e3PfjkaY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kMYWVfrfBedMM6rCGlMomcNQJunUCJptlE1CRFAx0FcHFhDI5EgaCIW1v6FpuaJ+7 1GtRdfTDYYvA2hurfUa9Z31qLSQGxOGMO4dwzaD/OaCteIj6/AAjuLXKT98Q1vvP0Z LZtM1IdKUpu+pNkMoqJWJfxZOWsURX9vQRUzqtCA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peter Ujfalusi , Stephen Boyd , Sasha Levin Subject: [PATCH 4.14 012/209] clk: ti: dra7-atl-clock: Remove ti_clk_add_alias call Date: Wed, 4 Dec 2019 18:53:44 +0100 Message-Id: <20191204175322.412048835@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191204175321.609072813@linuxfoundation.org> References: <20191204175321.609072813@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Peter Ujfalusi [ Upstream commit 9982b0f69b49931b652d35f86f519be2ccfc7027 ] ti_clk_register() calls it already so the driver should not create duplicated alias. Signed-off-by: Peter Ujfalusi Link: https://lkml.kernel.org/r/20191002083436.10194-1-peter.ujfalusi@ti.com Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/ti/clk-dra7-atl.c | 6 ------ 1 file changed, 6 deletions(-) -- 2.20.1 diff --git a/drivers/clk/ti/clk-dra7-atl.c b/drivers/clk/ti/clk-dra7-atl.c index 1488154704313..beb672a215b6c 100644 --- a/drivers/clk/ti/clk-dra7-atl.c +++ b/drivers/clk/ti/clk-dra7-atl.c @@ -174,7 +174,6 @@ static void __init of_dra7_atl_clock_setup(struct device_node *node) struct clk_init_data init = { NULL }; const char **parent_names = NULL; struct clk *clk; - int ret; clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); if (!clk_hw) { @@ -207,11 +206,6 @@ static void __init of_dra7_atl_clock_setup(struct device_node *node) clk = ti_clk_register(NULL, &clk_hw->hw, node->name); if (!IS_ERR(clk)) { - ret = ti_clk_add_alias(NULL, clk, node->name); - if (ret) { - clk_unregister(clk); - goto cleanup; - } of_clk_add_provider(node, of_clk_src_simple_get, clk); kfree(parent_names); return;