Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp344080rwj; Fri, 23 Dec 2022 02:09:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXsC1on5t4v0ZlTw2AM9SHkvqXX7aMPMu9YqSWqGpTAvJTTr/g/RMdSMtXlEryy9XVhfB6XD X-Received: by 2002:a05:6a21:3583:b0:9d:efc0:62 with SMTP id az3-20020a056a21358300b0009defc00062mr12099804pzc.10.1671790162861; Fri, 23 Dec 2022 02:09:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671790162; cv=none; d=google.com; s=arc-20160816; b=RRlG53lOJ9lr+Lt4y7SxSwLuNJhX6IVvG582o0XkyeuWuyVmW9g5ZaYigtm0U54gDY gzsmWo6w3bDwbwZ+gHqf0orBN8+3N4ceWVFgfmRTYfOIyJCaYsb8JP7qxJ8McWldR7Zu DFc/hLuuF3fUgTYL7tQAGb7MpQDdKHMo3RYfXdVg/byFUK31zqdIxqnuuDNjGKmsIx7Q 4knpGXg9reuuPMi+WrBVaPw5f9YEwkdZaVJlwXbQ9SarZL4zmH0NyV6iYXcyhQv8wOLD TYT/Om1wfeHnYa6HfHFG3i5V/MJ9AusSn62AVqnhwWh84pMLhbPuDAmvxJZhO1lt8rc1 9/qw== 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=NxB3QSnG1uyp3kVVVNVdvWzFUO6QJEgJqxRJIsqCIPI=; b=E3VfH/deSP/Lvez0HSTyMgjO1G4mbPxDdu28TCtSiOfZvHz1SQ/rXo5aXB66tiGhqu J4JsI9mRlCkGE9vDmXztrHTXhWjqqWwjT8jyN7RV4ECjC7o//k9ZtxKAlIgmvewe/HdY eRKW6D9uUPvBb7oLmQsufZuKG6m3vmCXyM7vhxK6cAzvZqeztsYv8qUXnx/e+D1jTR0o K0KueRB+ILsF4AyBbM8pxl8q0Pqev276/c4O4t+Z0yKjtZKQFDWv121gaNGOb0UoWTKm crwAITCBn1dd9plyTtenMLgieHrKYl1CK0B/j4AMPnvTVqpdDc3FUmDmrpPKBUrRxnVN 9Law== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=dDtyaEv3; 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 82-20020a630055000000b0047789ad499asi3377634pga.862.2022.12.23.02.09.14; Fri, 23 Dec 2022 02:09:22 -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=dDtyaEv3; 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 S236199AbiLWJn3 (ORCPT + 67 others); Fri, 23 Dec 2022 04:43:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236079AbiLWJnM (ORCPT ); Fri, 23 Dec 2022 04:43:12 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 484D93578D; Fri, 23 Dec 2022 01:43:11 -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 CC2996602CE4; Fri, 23 Dec 2022 09:43:08 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1671788590; bh=X/oZl8ocJQt071EbQHuHIaXUvTU5xZlpFyUlUhGeBQk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dDtyaEv3S2dKjskptbhe/8wP1Sfd0jjFw2TV26gHba+HAigLa9n2QOudgFaAcwXQf oOQ2tPUv5ajYu9c0AFSFbI+A/9NWvVakV6CLROPFxH8QQJCujpLi7c83cjMJ3/6+3m /Uie+lHV5M6mde2SZCsmnJkOOOiVCxG7b0EZyXo0eqLnJ+mfpyS+HMNennF5KSTX6I 8oSB2taVxBGwOoaRz6B84Mh1ysmBvXNpe62AHaX+KBPWw11fFKgFvFYz50msjJ9VOG SLs9/yDWEaA3OmwEtkCiKUafMDglozUqUk4By1uDCO1EOhXzILca/b9XUxkwPhHnQO rhy6RBORwgE1A== 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 v2 02/23] clk: mediatek: mt8192: Propagate struct device for gate clocks Date: Fri, 23 Dec 2022 10:42:38 +0100 Message-Id: <20221223094259.87373-3-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221223094259.87373-1-angelogioacchino.delregno@collabora.com> References: <20221223094259.87373-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 --- 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 eff66ca6c6a7..991d78a71644 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; @@ -1167,7 +1168,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; @@ -1198,7 +1200,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; @@ -1226,7 +1229,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