From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A19ADC433F5 for ; Fri, 4 Feb 2022 22:05:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 478F960E6F; Fri, 4 Feb 2022 22:05:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mget90WC4gQy; Fri, 4 Feb 2022 22:05:28 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id 465A460E66; Fri, 4 Feb 2022 22:05:28 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 1807DC001A; Fri, 4 Feb 2022 22:05:28 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 026DDC000B for ; Fri, 4 Feb 2022 22:05:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id CD3CA4094C for ; Fri, 4 Feb 2022 22:05:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DjK7Qaj9gFbS for ; Fri, 4 Feb 2022 22:05:26 +0000 (UTC) X-Greylist: delayed 00:31:11 by SQLgrey-1.8.0 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by smtp4.osuosl.org (Postfix) with ESMTPS id 21C82408E6 for ; Fri, 4 Feb 2022 22:05:26 +0000 (UTC) Received: from p508fdcd8.dip0.t-ipconnect.de ([80.143.220.216] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nG6Db-0003Tl-Cw; Fri, 04 Feb 2022 22:34:11 +0100 From: Heiko Stuebner To: joro@8bytes.org, will@kernel.org, Robin Murphy Subject: Re: [PATCH] iommu/rockchip: : Use standard driver registration Date: Fri, 04 Feb 2022 22:34:05 +0100 Message-ID: <4984895.Adqdaih0Sd@phil> In-Reply-To: References: <05ca5e1b29bdd350f4e20b9ceb031a2c281e23d2.1644005728.git.robin.murphy@arm.com> MIME-Version: 1.0 Cc: linux-arm-msm@vger.kernel.org, iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" Am Freitag, 4. Februar 2022, 21:16:41 CET schrieb Robin Murphy: > It's been a long time since there was any reason to register IOMMU > drivers early. Convert to the standard platform driver helper. > > CC: Heiko Stuebner > Signed-off-by: Robin Murphy Reviewed-by: Heiko Stuebner > --- > drivers/iommu/rockchip-iommu.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/drivers/iommu/rockchip-iommu.c b/drivers/iommu/rockchip-iommu.c > index 7f23ad61c094..204a93a72572 100644 > --- a/drivers/iommu/rockchip-iommu.c > +++ b/drivers/iommu/rockchip-iommu.c > @@ -1407,9 +1407,4 @@ static struct platform_driver rk_iommu_driver = { > .suppress_bind_attrs = true, > }, > }; > - > -static int __init rk_iommu_init(void) > -{ > - return platform_driver_register(&rk_iommu_driver); > -} > -subsys_initcall(rk_iommu_init); > +builtin_platform_driver(rk_iommu_driver); > _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu