From patchwork Tue Oct 20 21:05:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 11847889 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 063CF157C for ; Tue, 20 Oct 2020 21:05:30 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B453C2225F for ; Tue, 20 Oct 2020 21:05:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kxMg79FV"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="mNmo5w/r" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B453C2225F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.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=O40v8WCulpYFSXZhVMByvjgnNshzoor0cO2QRCVYA7o=; b=kxMg79FV5JIgZEiOCbbCP+1K2Z gzjlKhWZuegdGH6Z2LXxlaM8/fH4m6K1j35meaPnC5Taz6QyfDR7ftLPoazF1EzYmxYRmeU2OPVdQ 7H4nuXK5MGSfXNro12sOu6cLDlhKvpECJlYc5OeVdODGtpmssa3jpe2tC5O3bqMmmbabEO7eivFVA ga0m1qrEon9aPzxbwPBbGUKD/Nf5Y3faeRP5fE+U3wgn8/wvfCW7C1mi2Xlh8O/gyRBhRqP5+l6J3 BnPVMO7poLJCV7tcQujnEjB3djHHcr3tV8xWFGp+voo/BhfVSsXrZ2q0IuuH3sKv9nsavljyGy6pZ jFOdFV4g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUyoo-0000JY-2N; Tue, 20 Oct 2020 21:05:18 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUyok-0000I2-VG for linux-amlogic@lists.infradead.org; Tue, 20 Oct 2020 21:05:16 +0000 Received: by mail-pg1-x543.google.com with SMTP id x13so93815pgp.7 for ; Tue, 20 Oct 2020 14:05:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KXVypqIvWnOm3B7Hxv3T8P9PLe8J8qEwDDYcpNWBJmI=; b=mNmo5w/rhI4+sCLabieJMsk2bJo93p4+np03ewIAlGzSRYgfdOUl0RtWtyypTrka4i UsEt+XxPuMD+Y7OpZoEXjpXV8ZPhkCrDd80mS3bQI4u4vrXTvDUlknPaEg2uGQoyHTJH ZfY7B1mXby5TgNI7/tDTcufkkMpWv06v9SRgdzFzIJwKQLKD+Q57ynnPMCNfkfzJcA1j GtiVyLNdCgO91hongi2Fcrjbv61wf8T7Zt5m6nL7YY5pPj58L3vNg2HoFl7XQloSMxw+ xpV0AiEMkOn5Fqgp/OX7/hWrB0SZM362D5rIZ8EdstZMMZpH2tTxIt4VO13udbLxRjum vt9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KXVypqIvWnOm3B7Hxv3T8P9PLe8J8qEwDDYcpNWBJmI=; b=p7PREwEafjUURatz2JYytFZ3inM/aB2CJPp3fbetDJQWoJGq+LtV4lT83K73wTXuPE ip/wuvIu0rCEV2ttXzsC8dbOF1YURPTpJBI9C8PFyMFiKKIktt07feIlpITVjnRcwrRt ZkTjUNzHWVogFAlkV3pDXfRcRok6wxEI5C+UrUuBobC5VWbrV/OJ4Yh7DFcnnTvmyJ3A dO0w+lvtGGa0iZ629PAdFvqklKk5M1ex6tYIrJawLB+jqP1KRkN+zg+oTzNNKINjOVms oiKFxkD46eD5n8FTA1g0a1R9BplqbVDyxFTudR2bnw7UjfcKZmPVXCdEzFyUYOBQA08e zMpA== X-Gm-Message-State: AOAM532ApTAapywVNHZlREmHb3rvG2hiHeRgXy5HNtydHkGtMBI1RP4L XBe/TU/V0ie5zn7eoZA1FK5XGJTsrleB6CWi X-Google-Smtp-Source: ABdhPJzovJFB6MxkbHYZQDR/ACXhNqvZVPpvDodify8tAX9jKGWkQGjvmPDNaBMWJcdswgtJyrhtug== X-Received: by 2002:a63:fb50:: with SMTP id w16mr189536pgj.202.1603227912486; Tue, 20 Oct 2020 14:05:12 -0700 (PDT) Received: from localhost (c-71-197-186-152.hsd1.wa.comcast.net. [71.197.186.152]) by smtp.gmail.com with ESMTPSA id 20sm3036811pfh.219.2020.10.20.14.05.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Oct 2020 14:05:11 -0700 (PDT) From: Kevin Hilman To: linux-amlogic@lists.infradead.org Subject: [PATCH v2 1/2] soc: amlogic: socinfo: build for specific arch Date: Tue, 20 Oct 2020 14:05:10 -0700 Message-Id: <20201020210511.20184-1-khilman@baylibre.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201020_170515_083014_062DEADE X-CRM114-Status: GOOD ( 12.40 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:543 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Blumenstingl , linux-arm-kernel@lists.infradead.org, Jerome Brunet Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org The MX driver only supports 32-bit ARM SoCs and the GX driver only supports 64-bit SoCs. Only build for the right architecture. Reviewed-by: Jerome Brunet Reviewed-by: Martin Blumenstingl Signed-off-by: Kevin Hilman --- drivers/soc/amlogic/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/amlogic/Kconfig b/drivers/soc/amlogic/Kconfig index 321c5e26a268..08a27d9cbc7f 100644 --- a/drivers/soc/amlogic/Kconfig +++ b/drivers/soc/amlogic/Kconfig @@ -19,7 +19,7 @@ config MESON_CLK_MEASURE config MESON_GX_SOCINFO bool "Amlogic Meson GX SoC Information driver" - depends on ARCH_MESON || COMPILE_TEST + depends on (ARM64 && ARCH_MESON) || COMPILE_TEST default ARCH_MESON select SOC_BUS help @@ -63,7 +63,7 @@ config MESON_SECURE_PM_DOMAINS config MESON_MX_SOCINFO bool "Amlogic Meson MX SoC Information driver" - depends on ARCH_MESON || COMPILE_TEST + depends on (ARM && ARCH_MESON) || COMPILE_TEST default ARCH_MESON select SOC_BUS help From patchwork Tue Oct 20 21:05:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 11847891 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AC33F157C for ; Tue, 20 Oct 2020 21:05:43 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6685F2225F for ; Tue, 20 Oct 2020 21:05:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="n4fvZkNI"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="krqgZs6S" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6685F2225F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; bh=+HjCht3vaznTNZbD0wJ7rzxuH7bppTiaP/2ERd3rWqs=; b=n4fvZkNIutrGcH9jSrPH1zBDS dtOxNUGb194f1dgtFsSYWCfxnPEvx9ebDY5MpKRK+h9rTBEkjnXyCOF5h9HkmRMOmLVxm4JZmEHDQ gvbDNB2JX/0AEoZpn/3eD59y6uyHewwdM0XUjO9N8Ll+qbDvvYrA//ikREN8DERRFVUk3CkjGLxDz 7Lc+48Rzji9SjjJHY/24A/ue+scubMDJIfBr0603+Ja7KJSHxxdIGN7f4AgNnZNQHsn4eVNsITYXS ZvfrxIqb4f6qf/0KIOV8TtgnbYim/Gr5FKiItjM8SP5E7LzUeUS7mxLULUTbzIau7eUyJGdn39dYV MSqtdKesA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUyoy-0000M8-4K; Tue, 20 Oct 2020 21:05:28 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUyom-0000IA-3m for linux-amlogic@lists.infradead.org; Tue, 20 Oct 2020 21:05:17 +0000 Received: by mail-pl1-x641.google.com with SMTP id r10so45903plx.3 for ; Tue, 20 Oct 2020 14:05:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lG0doM2xKDlS9CL9eIQhGhhVEvgRv8sVLWPG9BPQTzY=; b=krqgZs6SItweDkvof+cJREyp08gwBuFXaMmC44ZjEu8V0vIHWmO62p7pddDaRLyhd1 6L7TraCSdlOoCFBjU/BPf8Awky8uXzwLgt7FCiOqzDioqIlmYC8alo8bCSEQYf9vU059 105WvEz+RNeDh7oXPje2OdnM/B+uFztgO5WJ/Yw+7tJ4GMxcJlPE1XGbyuk2MJ7iX3vc T0PKdLWhcwXhiKjlrmUWPpFTEKEGC+JdeH8QKJXe/HdvVzUaH+Lk6rijRN7zFd37zq6W igg+2TYc4cd3j/fAZj3UfWZeOgfWROdv4QD/zamcSYLO/U4eNDyLd0B5XzYpAVT7ieeZ Cw0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lG0doM2xKDlS9CL9eIQhGhhVEvgRv8sVLWPG9BPQTzY=; b=sqX+wNH3E0VemRxrE2AQ1f+BkJ9eFoX/blZxYdf/GIE1uCxwAY7Ij7nLyqETbEsZzy TVdlaA5gVH2I5Lfnn9rYXzjLredTNyQPPKl0PNcqLGbQKxTvQq+1SV+av0TGRVu1nUM4 2X2KM4D7BIUdS63zhp8eVmhJI4sT14bIVnZosFIzDDtqZ/147DjWOHLDRMUW5H0LScbr sItytbkURST69sDZGycPbzHGDqid03nXKuKgY5DsvUCtD6W6U26K6OKGBsJd6LNhhBvs v5dhqU+xXRDuMvHxS3bG1bX8j2fn2FR8wXByBo3RDQYiNo9Kn0FDt7pMVlxG+riGPSDK WFEA== X-Gm-Message-State: AOAM532xtIi09Arr5EP1BJSYdl+u0LE5j60nIILw9QEBZSoFTrT2MQjD 7id9FWvQMsxt778Eipl90cWCXoI+cpy9LYfA X-Google-Smtp-Source: ABdhPJxr/aAH51YVxVss3vVMz9n8kY0Tn0Qb6S8RxyCkspu6tp8FpHhO1n81Fpla19dxPdYZDuJIMg== X-Received: by 2002:a17:902:d90d:b029:d5:ee36:3438 with SMTP id c13-20020a170902d90db02900d5ee363438mr39217plz.77.1603227913674; Tue, 20 Oct 2020 14:05:13 -0700 (PDT) Received: from localhost (c-71-197-186-152.hsd1.wa.comcast.net. [71.197.186.152]) by smtp.gmail.com with ESMTPSA id v6sm82666pjh.10.2020.10.20.14.05.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Oct 2020 14:05:13 -0700 (PDT) From: Kevin Hilman To: linux-amlogic@lists.infradead.org Subject: [PATCH v2 2/2] soc: meson: enable building drivers as modules Date: Tue, 20 Oct 2020 14:05:11 -0700 Message-Id: <20201020210511.20184-2-khilman@baylibre.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201020210511.20184-1-khilman@baylibre.com> References: <20201020210511.20184-1-khilman@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201020_170516_187535_F4BC0DFE X-CRM114-Status: GOOD ( 14.85 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:641 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org Enable SoC drivers for 64-bit Amlogic SoCs to be built as modules. Signed-off-by: Kevin Hilman --- drivers/soc/amlogic/Kconfig | 8 ++++---- drivers/soc/amlogic/meson-clk-measure.c | 5 ++++- drivers/soc/amlogic/meson-ee-pwrc.c | 5 ++++- drivers/soc/amlogic/meson-gx-pwrc-vpu.c | 5 ++++- drivers/soc/amlogic/meson-secure-pwrc.c | 5 ++++- 5 files changed, 20 insertions(+), 8 deletions(-) diff --git a/drivers/soc/amlogic/Kconfig b/drivers/soc/amlogic/Kconfig index 08a27d9cbc7f..174a9b011461 100644 --- a/drivers/soc/amlogic/Kconfig +++ b/drivers/soc/amlogic/Kconfig @@ -9,7 +9,7 @@ config MESON_CANVAS Say yes to support the canvas IP for Amlogic SoCs. config MESON_CLK_MEASURE - bool "Amlogic Meson SoC Clock Measure driver" + tristate "Amlogic Meson SoC Clock Measure driver" depends on ARCH_MESON || COMPILE_TEST default ARCH_MESON select REGMAP_MMIO @@ -27,7 +27,7 @@ config MESON_GX_SOCINFO information about the type, package and version. config MESON_GX_PM_DOMAINS - bool "Amlogic Meson GX Power Domains driver" + tristate "Amlogic Meson GX Power Domains driver" depends on ARCH_MESON || COMPILE_TEST depends on PM && OF default ARCH_MESON @@ -38,7 +38,7 @@ config MESON_GX_PM_DOMAINS Generic Power Domains. config MESON_EE_PM_DOMAINS - bool "Amlogic Meson Everything-Else Power Domains driver" + tristate "Amlogic Meson Everything-Else Power Domains driver" depends on ARCH_MESON || COMPILE_TEST depends on PM && OF default ARCH_MESON @@ -49,7 +49,7 @@ config MESON_EE_PM_DOMAINS Generic Power Domains. config MESON_SECURE_PM_DOMAINS - bool "Amlogic Meson Secure Power Domains driver" + tristate "Amlogic Meson Secure Power Domains driver" depends on (ARCH_MESON || COMPILE_TEST) && MESON_SM depends on PM && OF depends on HAVE_ARM_SMCCC diff --git a/drivers/soc/amlogic/meson-clk-measure.c b/drivers/soc/amlogic/meson-clk-measure.c index 0fa47d77577d..e1957476a006 100644 --- a/drivers/soc/amlogic/meson-clk-measure.c +++ b/drivers/soc/amlogic/meson-clk-measure.c @@ -10,6 +10,7 @@ #include #include #include +#include static DEFINE_MUTEX(measure_lock); @@ -681,6 +682,7 @@ static const struct of_device_id meson_msr_match_table[] = { }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, meson_msr_match_table); static struct platform_driver meson_msr_driver = { .probe = meson_msr_probe, @@ -689,4 +691,5 @@ static struct platform_driver meson_msr_driver = { .of_match_table = meson_msr_match_table, }, }; -builtin_platform_driver(meson_msr_driver); +module_platform_driver(meson_msr_driver); +MODULE_LICENSE("GPL v2"); diff --git a/drivers/soc/amlogic/meson-ee-pwrc.c b/drivers/soc/amlogic/meson-ee-pwrc.c index 5164a4dc2352..ed7d2fbb47f2 100644 --- a/drivers/soc/amlogic/meson-ee-pwrc.c +++ b/drivers/soc/amlogic/meson-ee-pwrc.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -602,6 +603,7 @@ static const struct of_device_id meson_ee_pwrc_match_table[] = { }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, meson_ee_pwrc_match_table); static struct platform_driver meson_ee_pwrc_driver = { .probe = meson_ee_pwrc_probe, @@ -611,4 +613,5 @@ static struct platform_driver meson_ee_pwrc_driver = { .of_match_table = meson_ee_pwrc_match_table, }, }; -builtin_platform_driver(meson_ee_pwrc_driver); +module_platform_driver(meson_ee_pwrc_driver); +MODULE_LICENSE("GPL v2"); diff --git a/drivers/soc/amlogic/meson-gx-pwrc-vpu.c b/drivers/soc/amlogic/meson-gx-pwrc-vpu.c index 21b4bc811c00..8790627e3098 100644 --- a/drivers/soc/amlogic/meson-gx-pwrc-vpu.c +++ b/drivers/soc/amlogic/meson-gx-pwrc-vpu.c @@ -14,6 +14,7 @@ #include #include #include +#include /* AO Offsets */ @@ -364,6 +365,7 @@ static const struct of_device_id meson_gx_pwrc_vpu_match_table[] = { }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, meson_gx_pwrc_vpu_match_table); static struct platform_driver meson_gx_pwrc_vpu_driver = { .probe = meson_gx_pwrc_vpu_probe, @@ -373,4 +375,5 @@ static struct platform_driver meson_gx_pwrc_vpu_driver = { .of_match_table = meson_gx_pwrc_vpu_match_table, }, }; -builtin_platform_driver(meson_gx_pwrc_vpu_driver); +module_platform_driver(meson_gx_pwrc_vpu_driver); +MODULE_LICENSE("GPL v2"); diff --git a/drivers/soc/amlogic/meson-secure-pwrc.c b/drivers/soc/amlogic/meson-secure-pwrc.c index 5fb29a475879..59bd195fa9c9 100644 --- a/drivers/soc/amlogic/meson-secure-pwrc.c +++ b/drivers/soc/amlogic/meson-secure-pwrc.c @@ -13,6 +13,7 @@ #include #include #include +#include #define PWRC_ON 1 #define PWRC_OFF 0 @@ -193,6 +194,7 @@ static const struct of_device_id meson_secure_pwrc_match_table[] = { }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, meson_secure_pwrc_match_table); static struct platform_driver meson_secure_pwrc_driver = { .probe = meson_secure_pwrc_probe, @@ -201,4 +203,5 @@ static struct platform_driver meson_secure_pwrc_driver = { .of_match_table = meson_secure_pwrc_match_table, }, }; -builtin_platform_driver(meson_secure_pwrc_driver); +module_platform_driver(meson_secure_pwrc_driver); +MODULE_LICENSE("Dual MIT/GPL");