From patchwork Wed Oct 2 08:34:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 174956 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp456570ill; Wed, 2 Oct 2019 01:33:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZOAv43Go+mdXpSkCmvnTcxfbmH5DmWNPLqUxpC19Dc2wtaiR1ApXaAhTEfsDpxd6/d7T+ X-Received: by 2002:a17:906:2f10:: with SMTP id v16mr1895521eji.247.1570005234304; Wed, 02 Oct 2019 01:33:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570005234; cv=none; d=google.com; s=arc-20160816; b=fG/qjbWvxGgtpGq1IYG+2Q7wYs7iUN69rWL/T9fiICWx/T6d0Ye9vcuzP8wQO8DL4n iRca9wGwqfy+REcl9zDwK8WuFF3g3WJp4WUSTNv0EA8dnKmZohRvsoKcaLY/Uw3dya/M PJpQA9eVJm9iQ6D4GdvITpPDe4x3W1H+4s/JgTQAG5MPnIgJO/R8KqTz+YWYFnUJm5kU 9uz3n6nWh0bnN2T9udj6NWPDXn06j7CG8IqFDvPFqxV5FDSwaNchgZda15WErK5BB7YS 1hEGA7Ha8nBl/oBIAO00w62ObQ50lX6VWSyCQULU/JRXUFzIDaX8s6Neok0Fj+EImCcA tNgA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Lx0PqOkFZnRlGG1vEvlWMVTGc+q6HEDxj3c2tzG4bLs=; b=yEzjnNCVEtL8wDpSfF+gXKW67Xb0ZvUJM2Jes/0cyI0xnk8t382MPjer4X4aPsJ7y3 f3+P4FymvjlgeCyylwTNPEBIEihMo+0E6s4rXX0OPYiAIFLv879WaUWxMagSHTOoZZLB +ajupZ58lP3Nab/kVAuZLgjBif0wRYXZc484CGjfUcpSmybqcsE83VMA3bB/hj2D55sb VWOPYiD174P4dN51Hf3z2Id1AGfh3U5KEpS/XxfprW91+mCeDshHE7g398gpsoVsB2pU +Ebj5GqiI16pMvdm6iL1FbzYHluKNFdkNNbo+8GolIqyJ3C+0iJV0dYApzRLYCK914xf KMnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ig5Wa0bH; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f16si10248552ejc.73.2019.10.02.01.33.54; Wed, 02 Oct 2019 01:33:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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=@ti.com header.s=ti-com-17Q1 header.b=ig5Wa0bH; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725908AbfJBIdx (ORCPT + 5 others); Wed, 2 Oct 2019 04:33:53 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:44090 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725919AbfJBIdx (ORCPT ); Wed, 2 Oct 2019 04:33:53 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x928XoTr028711; Wed, 2 Oct 2019 03:33:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1570005231; bh=Lx0PqOkFZnRlGG1vEvlWMVTGc+q6HEDxj3c2tzG4bLs=; h=From:To:CC:Subject:Date; b=ig5Wa0bHgog0DDzmgvazjkSpYC2YGavFl4c7/gUGUm+KvhGYzcBkRcLAjsdv7QT3s XarlGThelfpXo8AAGr5LNBimXDeqrh4mAysaOSmyybopAY2dOSZqnvLoOlsZ/tALI1 VJIi7fZSXLFVFT2NRXblKigV84Z6QvOiKpGQxdlk= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x928Xohi093820 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 2 Oct 2019 03:33:50 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 2 Oct 2019 03:33:50 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Wed, 2 Oct 2019 03:33:50 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x928Xlts014195; Wed, 2 Oct 2019 03:33:48 -0500 From: Peter Ujfalusi To: , CC: , , , Subject: [PATCH v2] clk: ti: dra7-atl-clock: Remove ti_clk_add_alias call Date: Wed, 2 Oct 2019 11:34:36 +0300 Message-ID: <20191002083436.10194-1-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org ti_clk_register() calls it already so the driver should not create duplicated alias. Signed-off-by: Peter Ujfalusi --- Hi, changes since v1: - removed unused ret variable Regards, Peter drivers/clk/ti/clk-dra7-atl.c | 6 ------ 1 file changed, 6 deletions(-) -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/drivers/clk/ti/clk-dra7-atl.c b/drivers/clk/ti/clk-dra7-atl.c index a01ca9395179..f65e16c4f3c4 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;