Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp754462rwb; Fri, 13 Jan 2023 03:53:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXv+jKgrWQt3Dn6g0w2lZm6AExqvj3+l0VzpL9jn+ZFv8Fi/x/PLp+paEwBfj5P4p9PyFgat X-Received: by 2002:a05:6402:1801:b0:499:bf81:be6 with SMTP id g1-20020a056402180100b00499bf810be6mr13677273edy.37.1673610836499; Fri, 13 Jan 2023 03:53:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673610836; cv=none; d=google.com; s=arc-20160816; b=yDJpHqyT+vnZNahSbcxAdSHPSL/uazm0ooaoP5i0FRSwdPhKuiD3kMUJz3AmZPWZIB KBF1MPi7bFqs25TiJUBZAQ+uQzPRn9BH3Sjdy5QGnvJNnWW8W8rPWD8FYDNdlzWajghh G0njOsCW9TZ29O6/b6i0Ee6XhudMzK09RbT5reIXabtFesh2EepbqkxK8hVJ1xQtF2bu 4cCiLgyD5xqB8qtzkB9QBU3HGWHaiw692g4hDjt+pqUNF+eYBBhfPrOVWqHqCrBqZR7e IM9461ZNACCmIhG8u2zhVf5WGQyGMylGy+TrU7HV/WTdCUT8HedGVDsDl47qFyeizLAf cqkA== 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=A2quRAjvoipaPRehbWKpJNNQZdLXZPyocGndu57YI0U=; b=ISHZfy8z0D94PyD4hHYC2ZTmJ3dmYMUWfueCqWZB/yVGsNGEXlHtupkLkIUM1zcjVC +gKgedZmxLi3bkyyWQErXekpK5nnDv7gerH5XHJoueeXuox95Vum+uTmpJxN8KfYCJRy u1mby+xDo0uoSiCe7k8XIU1pc92l4OxWOZTBZEhj3jA+Mp1EN3+DHdRj6ObYWHYLr2aT JlEbE/E1s9d0gm27lloetNZRIInoogfscdBr8t9e/uwc8COyQvcznJ+zAiNzs+SV2QKJ /ivajD2uSDEC6BFJytiPEYhrn/TmGXIdMGC+egCxxicQME2/MJzGrtTjfMK5usFgjxyk ZU5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="RI/0v/7h"; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o6-20020a056402444600b004829afcc563si19092193edb.404.2023.01.13.03.53.42; Fri, 13 Jan 2023 03:53:56 -0800 (PST) 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=@collabora.com header.s=mail header.b="RI/0v/7h"; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241322AbjAMLeC (ORCPT + 51 others); Fri, 13 Jan 2023 06:34:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234274AbjAMLdC (ORCPT ); Fri, 13 Jan 2023 06:33:02 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B6123FA16; Fri, 13 Jan 2023 03:07:04 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id E2BCF6602DCE; Fri, 13 Jan 2023 11:07:01 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1673608023; bh=5mWsN7mxFBCMoK22xKHOKtOsUB4GTsMLEpwz6c1ENv0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RI/0v/7h+uAh8loTXVJBWNOa1VKhcDX2soGBQVEViD8omIbFe8UYpIptoQuQ9F9kx gy2/xoDgOhfuHELv7BwcB9HuwMg4VrRo8EyygwAzLk1CEI+4oZdFbp8vycS6S2AE11 gHOZD48Cs+Zo9bF4j03qVKAgP3ct/5CME95keQKSnhEuIzHlH2JoQ7LB+I86OD8AMB BdgsmNaUDa5DRmN02eCXmYM9yeisQTtWeBpADy3Rg6C9TrFPeofHUhJDKe4OU+dlLl vclynWuP6l0Za0gYH5CZY3oheXMMpiO9EMFbvbKAUS2y3SyI2ypZNt+5hL8Xh198US EW2QODdeUZaOQ== From: AngeloGioacchino Del Regno To: mturquette@baylibre.com Cc: sboyd@kernel.org, matthias.bgg@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, angelogioacchino.delregno@collabora.com, wenst@chromium.org, johnson.wang@mediatek.com, miles.chen@mediatek.com, fparent@baylibre.com, chun-jie.chen@mediatek.com, sam.shih@mediatek.com, y.oudjana@protonmail.com, nfraprado@collabora.com, rex-bc.chen@mediatek.com, ryder.lee@kernel.org, daniel@makrotopia.org, jose.exposito89@gmail.com, yangyingliang@huawei.com, pablo.sun@mediatek.com, msp@baylibre.com, weiyi.lu@mediatek.com, ikjn@chromium.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, kernel@collabora.com Subject: [PATCH v3 02/23] clk: mediatek: mt8192: Propagate struct device for gate clocks Date: Fri, 13 Jan 2023 12:05:55 +0100 Message-Id: <20230113110616.111001-3-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230113110616.111001-1-angelogioacchino.delregno@collabora.com> References: <20230113110616.111001-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Convert instances of mtk_clk_register_gates() to use the newer mtk_clk_register_gates_with_dev() to propagate struct device to the clk framework. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai --- drivers/clk/mediatek/clk-mt8192.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt8192.c b/drivers/clk/mediatek/clk-mt8192.c index 5196a366dd55..6f4525a4ff75 100644 --- a/drivers/clk/mediatek/clk-mt8192.c +++ b/drivers/clk/mediatek/clk-mt8192.c @@ -1127,7 +1127,8 @@ static int clk_mt8192_top_probe(struct platform_device *pdev) if (r) goto unregister_top_composites; - r = mtk_clk_register_gates(node, top_clks, ARRAY_SIZE(top_clks), top_clk_data); + r = mtk_clk_register_gates_with_dev(node, top_clks, ARRAY_SIZE(top_clks), + top_clk_data, &pdev->dev); if (r) goto unregister_adj_divs_composites; @@ -1170,7 +1171,8 @@ static int clk_mt8192_infra_probe(struct platform_device *pdev) if (!clk_data) return -ENOMEM; - r = mtk_clk_register_gates(node, infra_clks, ARRAY_SIZE(infra_clks), clk_data); + r = mtk_clk_register_gates_with_dev(node, infra_clks, ARRAY_SIZE(infra_clks), + clk_data, &pdev->dev); if (r) goto free_clk_data; @@ -1201,7 +1203,8 @@ static int clk_mt8192_peri_probe(struct platform_device *pdev) if (!clk_data) return -ENOMEM; - r = mtk_clk_register_gates(node, peri_clks, ARRAY_SIZE(peri_clks), clk_data); + r = mtk_clk_register_gates_with_dev(node, peri_clks, ARRAY_SIZE(peri_clks), + clk_data, &pdev->dev); if (r) goto free_clk_data; @@ -1229,7 +1232,9 @@ static int clk_mt8192_apmixed_probe(struct platform_device *pdev) return -ENOMEM; mtk_clk_register_plls(node, plls, ARRAY_SIZE(plls), clk_data); - r = mtk_clk_register_gates(node, apmixed_clks, ARRAY_SIZE(apmixed_clks), clk_data); + r = mtk_clk_register_gates_with_dev(node, apmixed_clks, + ARRAY_SIZE(apmixed_clks), clk_data, + &pdev->dev); if (r) goto free_clk_data; -- 2.39.0