Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp783272rwb; Mon, 26 Sep 2022 05:57:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5FSa9irCymRB6Hk5f8rq2S5roFNj3+0b9ISl0jeEA/MH8Z8YWyNB6htCYUCD4+MWfUEh98 X-Received: by 2002:a17:907:7633:b0:781:96f0:1bfa with SMTP id jy19-20020a170907763300b0078196f01bfamr18363152ejc.321.1664197050770; Mon, 26 Sep 2022 05:57:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664197050; cv=none; d=google.com; s=arc-20160816; b=I9VXoNhNEV7xT3iwq/9wuorLkiabcl/SVv+DLAxgR+HjwdSkrFC4BZsRz1NnZEeTUQ aYMwjh3G9gwFIg+gfJCzPqsSdNCxOqbImSVLvxzXiBzaYDWGKbDXQcWo5JpfwFXSwe33 MECcu50jjhRPDb/9+S3FlJY7WokVm5Dk6FxN0kNBzPcTqBec5JttQ+ajTHKhXpyFTVBE 7hPOaWQjKKJv9ELP6jf4WH265LLQno97owT2e1sEKuoR4G0D5Wz8EV9NXaCFJEDX36co AVqhQslX5Eg6LHXQijy2y30TIAZCWJLPPZijaCM6+PCVQ4nhyb0ep5Glw9kZlZQXFkdD H3vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dHvW2mH0yZiCOpVix1KpaCgJFkZzSxad+cGKtiAaGB8=; b=tnB4Im/2GxYwJXtPgyhcdbhwk6Xc+JDrRGvNwe7DNJlF9E0UJC6fI8L1fgdrW5xbhY 75pUqUqmrx2Yiqv5Z2AD38YiH46slqKu6hEiJuf0DACGrYIKAhy8yxL2R4FyVYYAxHoO frRLVmFR3fLA5if0Y3EOOjiEyOlPkkgJc/lKlcjJS+Y42gHo5NIKqozkMcfa+t7iiZG/ 33vLQUy/r0O7xAmYIkiVXtmeqHEeauCvOgI8E+X+VvvEO0CxsVW+Sb1kwg/qvBE0/zMI KZfggMPG2gs1Yotx2eIBFhtZnw6SGDF7o1jO8SDFMFsj0tc6apUkZmYecLsbhLAtpD9x iSKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RR2mK+4E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y12-20020a50e60c000000b0044efdf9db9fsi13710309edm.68.2022.09.26.05.57.05; Mon, 26 Sep 2022 05:57:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RR2mK+4E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234440AbiIZKrn (ORCPT + 99 others); Mon, 26 Sep 2022 06:47:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236851AbiIZKow (ORCPT ); Mon, 26 Sep 2022 06:44:52 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B698564DF for ; Mon, 26 Sep 2022 03:25:47 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id j6-20020a17090a694600b00200bba67dadso6251552pjm.5 for ; Mon, 26 Sep 2022 03:25:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=dHvW2mH0yZiCOpVix1KpaCgJFkZzSxad+cGKtiAaGB8=; b=RR2mK+4EOLZeN2sV7vuva88OhXlVdJgc07lHJrrM/3kAtVbhudmeUXxGhqeApoNlF3 dn1ig/9OK1FDFXgKmAshSICrlPAiCcoXHD+oeNZ/af2UFeNqS77kewikCdl7O0oJmW3+ 0usfVX0ObdYmWEtqJBTSXlJGh787/7Jyd+LNY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=dHvW2mH0yZiCOpVix1KpaCgJFkZzSxad+cGKtiAaGB8=; b=64/slcSx2TeU5qngajPAqjXLIdhjOupPjr057y0cEoj0tgXnrqH4/xz14FroCJbKWr sAOKnD0bfx2Op1bxg4rSsujEqIPUjLAQD9mfiYqhNveTUv+tuLfvW7osEm/r4JLrQMib N9mYIkNxyH7b7pqrbHqpf0z+3wi8oBgf1I3LjtymtpYQbJlitolDQQhxXszYijqm2iiM NvRFndAGXjKsBc7UtCiM+/g5lMngRTqm2N/2vuAayORpEpVppG+8Nl/VXHufBmuNK1cA RHUNpKV7RjqY6OZBLfFWMIX0ymZE5ZbB3EARX+UVa8H31AJPNU3VtxFFg2Pb7kjnDMqg F8YA== X-Gm-Message-State: ACrzQf0Fuz75K14y9+SH4/MaFosBP3NUEliNB0386gbs//J2oaddCeRb YJBNkHUNYvJHB9XyFroiG+HmTA== X-Received: by 2002:a17:90a:f28b:b0:203:627c:7ba1 with SMTP id fs11-20020a17090af28b00b00203627c7ba1mr35851443pjb.191.1664187946492; Mon, 26 Sep 2022 03:25:46 -0700 (PDT) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:1340:7319:2f7a:3be9]) by smtp.gmail.com with ESMTPSA id y23-20020aa79af7000000b00536aa488062sm11750236pfp.163.2022.09.26.03.25.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Sep 2022 03:25:45 -0700 (PDT) From: Chen-Yu Tsai To: Michael Turquette , Stephen Boyd Cc: Chen-Yu Tsai , Matthias Brugger , AngeloGioacchino Del Regno , Miles Chen , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] clk: mediatek: mt8192: Do not re-register top_early_divs in probe function Date: Mon, 26 Sep 2022 18:25:20 +0800 Message-Id: <20220926102523.2367530-4-wenst@chromium.org> X-Mailer: git-send-email 2.37.3.998.g577e59143f-goog In-Reply-To: <20220926102523.2367530-1-wenst@chromium.org> References: <20220926102523.2367530-1-wenst@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org top_early_divs are registered in the CLK_OF_DECLARE_DRIVER() half of the topckgen clk driver. Don't try to register it again in the actual probe function. This gets rid of the "Trying to register duplicate clock ..." warning. Signed-off-by: Chen-Yu Tsai --- drivers/clk/mediatek/clk-mt8192.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/mediatek/clk-mt8192.c b/drivers/clk/mediatek/clk-mt8192.c index ebbd2798d9a3..e39012583675 100644 --- a/drivers/clk/mediatek/clk-mt8192.c +++ b/drivers/clk/mediatek/clk-mt8192.c @@ -1235,7 +1235,6 @@ static int clk_mt8192_top_probe(struct platform_device *pdev) return PTR_ERR(base); mtk_clk_register_fixed_clks(top_fixed_clks, ARRAY_SIZE(top_fixed_clks), top_clk_data); - mtk_clk_register_factors(top_early_divs, ARRAY_SIZE(top_early_divs), top_clk_data); mtk_clk_register_factors(top_divs, ARRAY_SIZE(top_divs), top_clk_data); mtk_clk_register_muxes(top_mtk_muxes, ARRAY_SIZE(top_mtk_muxes), node, &mt8192_clk_lock, top_clk_data); -- 2.37.3.998.g577e59143f-goog