From patchwork Tue Nov 6 18:36:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 10671281 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0976E175A for ; Tue, 6 Nov 2018 18:36:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EFC8729006 for ; Tue, 6 Nov 2018 18:36:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E2B602AAFD; Tue, 6 Nov 2018 18:36:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8DD8D29006 for ; Tue, 6 Nov 2018 18:36:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=eItd4SUxLc5KgeOKSZ2FxrQ9NnHdRx5QFD5gYMD40rE=; b=aoQAzfyuk3cWB+ WboRFv8FzCXPoXLOiULCwUyVrMNbwT57NmEze28FNPXkz88lzj8Y3rEQj67wqH9gTA3DE8bsbD9vw 5UaQ1Q4oVxX86Kel80nTBhbdfp68hXsgN7WUhSKwBYAsV2vN0tZO43xiOEpFrcKCpYvQSyGkw9VJE KUFycWGt8eon6MiKiFfA/6lZGdWX0gUVRR9caxHsa+zTsQL3PR3KcH8TuG9Eqa5b2hvlvs6R9W2Ey 3fXZlJh8jsR3oXKoE5vq1Up2ZFvu12/E1vKZPCkgEc2gdGWC6dc+kp87NJnZ+T9UGUGrc831G/Q0H MnVX7JPu3T1Y+Tj2gsCQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gK6DG-0002KQ-0s; Tue, 06 Nov 2018 18:36:30 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gK6DD-0002JG-KV; Tue, 06 Nov 2018 18:36:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=wcop++LbakmazhF/FXPmGgSWP0mHbbC7WmfL1kIi8zI=; b=s2k0Uycj0NRYfHo1MQIxX49udY h3YuSOIejhIw8x9s3JhuW+Npay1eWZYxMRtUgyMKKBqWurFEcFmYNCYnWmlzoYtUK+V6GGQHMDCm9 6QxqeHjojYECoiLw9MdtUoDsgm2QY50iALKzvklD+N9dWhb80/GAkPycXwUocmivCjRFfVws7V9UM wUt1q1YqGNkaCL7RazA3/KCLoKlnqGwcs6zrQ2LEcgbsH88iE1B0xdse1wmlRjQvAHNh2IPfPgJnz OFBI4S2Nw//yIHHs21w+lHm9m3ndIZPu32Dv1D9qXXCVhTFY7BEtoDM8/w11myikyVA572KwvM5rO UkwpE1JQ==; Received: from mail.kernel.org ([198.145.29.99]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gK6D9-0000HL-Vp; Tue, 06 Nov 2018 18:36:26 +0000 Received: from mail.kernel.org (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6A51520827; Tue, 6 Nov 2018 18:36:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541529370; bh=mr8bjpKJuNvuWt0yCK5QYep3MiI2l4nON4kLEq1ktM0=; h=From:To:Cc:Subject:Date:From; b=dDeu8WqEWVbV3giVX+vsJMA8Reyzx5/p476Nbf072PO9JEiDZ5uwmfSIAkj9Co+nq PZmpq2Vzl4qp44nwa18HKnYO4ah/1BWq0Sej/3QxJv1VMIgDFxfRNCuhOMyAd0+BpR zsRN6ouJuJRJdWU1H9vRuMnWP7oGZWd3dkpFsEf0= From: Stephen Boyd To: Michael Turquette , Stephen Boyd Subject: [PATCH 0/4] Simplify mediatek clk driver probes Date: Tue, 6 Nov 2018 10:36:05 -0800 Message-Id: <20181106183609.207702-1-sboyd@kernel.org> X-Mailer: git-send-email 2.19.1.930.g4563a0d9d0-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181106_183624_149797_B08D15EB X-CRM114-Status: GOOD ( 12.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Ryder Lee , linux-kernel@vger.kernel.org, Rob Herring , linux-mediatek@lists.infradead.org, Matthias Brugger , Frank Rowand , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP I suggested this some time ago but nobody has gotten around to doing it so far. Well now I have! Here's a patch series that cuts down the boiler-plate code that Mediatek clk drivers have to multiplex probe amongst the device match data. Rob/Frank, I'd prefer to take the first patch via clk tree so I can merge it all in the next release. Otherwise, I can pull a stable commit and merge it that way in case you want to take it through your tree. Cc: Ryder Lee Cc: Rob Herring Cc: Frank Rowand Stephen Boyd (4): of/device: Add a way to probe drivers by match data clk: mediatek: Convert to platform_driver_probe_by_match_data() clk: mediatek: Drop THIS_MODULE from platform_driver clk: mediatek: Simplify single driver probes drivers/clk/mediatek/clk-mt2701-g3d.c | 28 +++--------------------- drivers/clk/mediatek/clk-mt2701.c | 20 +---------------- drivers/clk/mediatek/clk-mt2712.c | 21 +----------------- drivers/clk/mediatek/clk-mt6797.c | 20 +---------------- drivers/clk/mediatek/clk-mt7622-aud.c | 28 +++--------------------- drivers/clk/mediatek/clk-mt7622-eth.c | 20 +---------------- drivers/clk/mediatek/clk-mt7622-hif.c | 20 +---------------- drivers/clk/mediatek/clk-mt7622.c | 20 +---------------- drivers/of/device.c | 31 +++++++++++++++++++++++++++ include/linux/of_device.h | 1 + 10 files changed, 44 insertions(+), 165 deletions(-)