From patchwork Wed Dec 22 08:28:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 12697072 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 95B88C433F5 for ; Wed, 22 Dec 2021 08:30:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/c/BE+zX0//KaizUplUsF37uKMKisxHuZuOZJDiWN+M=; b=YdN/q5TJ3KUQAi 6ifKH1CSm0Avr0VL/hhd1L35INBPlRgAVX82yLBY6G/hvxpZpVh0iZXFHQP0xv9qiMWD8XuTWpS8m O3OIwNSn5C/37nSZyjnkaQUMk0UAyQQTu/H8qFrX3xZzNwzGC23sDTqcRQV6qX8pdk1F8WEj4h1cE h8uEFFAu6jwMlF6Z/ks76EDyAWyd055aeCa732oRwkfxVfuIWgFQHEpqGsHBf1e+wMsfzGNosGG2t q15Tr0J5+ncUkYKRwRjv+OJ61eQLLxtbAI0GxBkiLfEHFF57yAt3HpawoLWI+5kS6WxHjC1kAUt+0 fhlJtlCUCCAANlxsIdHA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mzx04-009gti-NL; Wed, 22 Dec 2021 08:29:29 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mzwzT-009gbx-SD for linux-arm-kernel@lists.infradead.org; Wed, 22 Dec 2021 08:28:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1640161730; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3N2KnVsfLEPnGk4GM83SnUnjHj7nisH0v3Qa0ml2DP8=; b=OZxvDLZ9JbowHoXzfmbAS0wwr1+gCbpvWuGqHo97/yJhkYwoMUWQvTZMqcicnTRVTBDRr6 Z9bGXFvYqlQilRp2506LKb1EE5qhLKi951ZZiZKw1ypHYp34qXJusuXtugGrTpPhXrTbCD 1+bVeXt8KRPqTQl09JXmQjsTYjraVsw= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-648-whvAp5akPMSGWL9vohLgTw-1; Wed, 22 Dec 2021 03:28:49 -0500 X-MC-Unique: whvAp5akPMSGWL9vohLgTw-1 Received: by mail-wr1-f72.google.com with SMTP id j26-20020adfb31a000000b001a2356afd4fso516880wrd.21 for ; Wed, 22 Dec 2021 00:28:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3N2KnVsfLEPnGk4GM83SnUnjHj7nisH0v3Qa0ml2DP8=; b=B3Mmg732CmkciO5Xvsf3dHPJ7mBHZED3mXZFE/oKEoH919YYvYURf02yMGujLOPW1C /4sCEq5kCt60XhjI66B3pXAZO88r/HPI0GlJwgU0516WN1Y2oSmS9hYpSMw1j9q/Cnsz uiAQFzVQfmLITMhF1OesW2coS8qGBPoesU8bEpLbarrv3anwl3QiExgn+aAR5srjRdV8 4TH3pj3HTP9ooAfg9SAed5XFO/xbRfND6/nXIVwwJtxowtwLAPW+2WDTN9FHeZqA6B5C DjGxQnrAy8Hi6YcvQ8H1NE908AZ8Hf0fk05og8Gsm09k4p+T6g+IPBSdaaVdIrOG/xyZ M99Q== X-Gm-Message-State: AOAM532EUvkInuWfSUHmPqLPzXTmhDkeaWFiTYDfRVqArrnOc+d8K/TB xuZRz9mj4nT472ETSCp+g/KzyIXdkKuvvqir2wBOxzpCNCo0Nnb6lkwlt0TPc9JOBpa6oRoWXTA WCHNGilnppDQfGO/TAEEW+VWe9LN+bj9XUEE= X-Received: by 2002:a05:600c:2119:: with SMTP id u25mr97758wml.93.1640161728595; Wed, 22 Dec 2021 00:28:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJyclg3C9m1lfpdHzwWRKr1jtDWrqzNKG6YD/sARAOTo22q6Tb8b2/EF4W39n16Lc2X5xTgEsA== X-Received: by 2002:a05:600c:2119:: with SMTP id u25mr97738wml.93.1640161728427; Wed, 22 Dec 2021 00:28:48 -0800 (PST) Received: from minerva.home ([92.176.231.205]) by smtp.gmail.com with ESMTPSA id m17sm1247080wrz.91.2021.12.22.00.28.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Dec 2021 00:28:48 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: Javier Martinez Canillas , Lucas Stach , Daniel Vetter , David Airlie , Fabio Estevam , Laurentiu Palcu , NXP Linux Team , Pengutronix Kernel Team , Philipp Zabel , Sascha Hauer , Shawn Guo , linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 07/10] drm/imx/dcss: Replace module initialization with DRM helpers Date: Wed, 22 Dec 2021 09:28:28 +0100 Message-Id: <20211222082831.196562-8-javierm@redhat.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211222082831.196562-1-javierm@redhat.com> References: <20211222082831.196562-1-javierm@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=javierm@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211222_002852_023545_BB1168F2 X-CRM114-Status: GOOD ( 13.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Replace module_platform_driver() with drm_module_platform_driver(). The DRM macro respects drm_firmware_drivers_only() and fails if the flag has been set. Signed-off-by: Javier Martinez Canillas Reviewed-by: Lucas Stach --- (no changes since v1) drivers/gpu/drm/imx/dcss/dcss-drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/imx/dcss/dcss-drv.c b/drivers/gpu/drm/imx/dcss/dcss-drv.c index 8dc2f85c514b..24147ee7080e 100644 --- a/drivers/gpu/drm/imx/dcss/dcss-drv.c +++ b/drivers/gpu/drm/imx/dcss/dcss-drv.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include "dcss-dev.h" @@ -131,7 +132,7 @@ static struct platform_driver dcss_platform_driver = { }, }; -module_platform_driver(dcss_platform_driver); +drm_module_platform_driver(dcss_platform_driver); MODULE_AUTHOR("Laurentiu Palcu "); MODULE_DESCRIPTION("DCSS driver for i.MX8MQ");