From patchwork Mon Oct 19 22:46:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 11845403 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 EBC4515E6 for ; Mon, 19 Oct 2020 22:47:17 +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 B16CC223FD for ; Mon, 19 Oct 2020 22:47:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="KsW8/1Cl"; 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="XbinKz4O" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B16CC223FD 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=5N6Qzy3MDz5rVW4C3DKEv70A7DQ9ZEviyPGpAgzhn+s=; b=KsW8/1ClnTqfmPHXcugTKlSkjT ukfC53X6KLs8SaKMy/yBQO2MAkODe88ekb/W7PjlVx+CEaH8Rktfh6WQGX6vrB2ctZ8xLaAKoPNVz ZGhz+jpPNDJMvA/kftXqFgn95p6yVy+ELtsrerKHx7ZSpcteeU7V2Tkqt/Kmqcx263z0w+SPxPRo4 2T1s/7BY7lAZuFQbK+3v+eml6gUgvjfQfSZOa3b646uy92D8+VdRvKbQQFwKA0DpvKQ/mCfbygf46 JHU4ynLi3dAWDzitUmK1596ki4NTbaWLpbP/MJwAkQ/chKj23KCHOc4lg8L5F6de4w4NS0dOjwt2I p5yunV6w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUdvj-0007jU-3b; Mon, 19 Oct 2020 22:47:03 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUdvc-0007hV-AE for linux-amlogic@lists.infradead.org; Mon, 19 Oct 2020 22:46:58 +0000 Received: by mail-pf1-x441.google.com with SMTP id e10so872273pfj.1 for ; Mon, 19 Oct 2020 15:46:54 -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=utrWRRi4VOUNJm/4AqrjKO/JoEH65pTqnADpfw2kkH0=; b=XbinKz4ObwuCyqEyCDkdP+NVEx/bzmPpZRAFCPlWJOUh5la8CojEvx3Mf5v1LHWzXi Kj8TKVCFdm6GLCDARVzRbbUfWj7gnM+DjRylyd77sqX+LYrXiHYBH/Q67OffET/RBpjH AhF4BJomvcYZ8nreqVFgJJNBXr6Tz3IIzcclyj/YrC0Xoy1nEJR9ZdV/RLxeGAQamRyB 2zYe4W82HTmzp9dvMz6eF3iVdRQyCoiquTbWwlmldVWicrVfatD+mB8WHnakwIqK0NHY mRtLNHw3Fw095p2PMSaK4NyaptsMxvLsZ48bvYBMW5J5BRLiuqUp4N2aTty3XWR9L1Lm nddA== 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=utrWRRi4VOUNJm/4AqrjKO/JoEH65pTqnADpfw2kkH0=; b=PDUvpQXZVzqdHlSwooSP5HUvxuvgGUaA70q76LNN9ShTv8ksmpMXYPip7qAkEjbc0V Cu+jgNDNsJrtFeMW2iU7BH5iKkhrL4e2URajXCJY94PCnqlcOrNaNWueOGNIoETpZyn3 u/L9OiNo/kqqN9whRHFWM6eyzDjmIm0h9858bEwYQtFa0IAnQLVFQzJ3cMeGiwVEGYB2 eCJIGvHXQKbTWC3g0KUJg4E3DczUM6gDm6cjBc4fobTH1qZdim7ND2rTbwGCm7Wp7XZY IFhy+au11ixhTYsNTM8e6dfJm6jtLedBrH+Z6YSWpaJWdmTq1Ih03QIH3yjoNCx0K5zq Aixw== X-Gm-Message-State: AOAM530WH6pkp2xsoAnr0NnlI4K8yckpZ3b3RBXtgHsMPTBh37V/b29s R+kxB93xpkLX+vifMwW7CFDwmNs8G80z7utY X-Google-Smtp-Source: ABdhPJzkLAmtgTxZYUC2Yh+9Zyzr3xdMj+ZDX8NIF/4tUIDU/S2JwbALxOdnekodUpikcCbtwZqE5g== X-Received: by 2002:a05:6a00:1693:b029:155:abe5:caa2 with SMTP id k19-20020a056a001693b0290155abe5caa2mr1810103pfc.39.1603147612686; Mon, 19 Oct 2020 15:46:52 -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 e19sm31924pff.34.2020.10.19.15.46.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2020 15:46:51 -0700 (PDT) From: Kevin Hilman To: linux-amlogic@lists.infradead.org Subject: [PATCH 1/2] soc: mx-socinfo: only build for arm Date: Mon, 19 Oct 2020 15:46:48 -0700 Message-Id: <20201019224649.14302-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-20201019_184656_489429_5A9A09DD X-CRM114-Status: GOOD ( 12.82 ) 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:441 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 This driver only supports 32-bit ARM SoCs. Only build it for those. Signed-off-by: Kevin Hilman Reviewed-by: Jerome Brunet Reviewed-by: Martin Blumenstingl --- drivers/soc/amlogic/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/amlogic/Kconfig b/drivers/soc/amlogic/Kconfig index 321c5e26a268..2d7ee1397d59 100644 --- a/drivers/soc/amlogic/Kconfig +++ b/drivers/soc/amlogic/Kconfig @@ -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 Mon Oct 19 22:46:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 11845405 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 46A1516C0 for ; Mon, 19 Oct 2020 22:47:18 +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 D480B22403 for ; Mon, 19 Oct 2020 22:47:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="cyUBXbXY"; 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="ffEQFuEa" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D480B22403 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=Xz+r8vL1djSWm6hkPhSzJ9Xsi81lCX2ZCIDdPjUvrlY=; b=cyUBXbXYe4qIFwLf+FK8wMayl RfaAORQGuNq+H2D+O9gxY78ZlwGJ7RP0cffZ+hyqMIfjprzg2PVW5ArvXNPnLWKAItt03jVf1GYR8 EoRPjJ2IHk3+mvFDeVvKqMD7dWnoF6zjMHl1H4VCeM3ZQ9URoz4gON5XRgRhg4Va30j+TiPBH6mRc v4KTuZ35TBJ8CkVuLVuZGeGdChzyF9P0ag+OuS7VPNh5Ar1I1yMJkAqUa3us16WY8i7DIQBzSZSXP pJHSFj7QI029K6LKLcQ3vIMQIkuLfLkfHqiQcu9fkCr/zFYtB6YUS3ryV0/cTwNkvNkPvlc5JnVWt wLpQlg+jQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUdvk-0007js-51; Mon, 19 Oct 2020 22:47:04 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUdvd-0007hg-Ky for linux-amlogic@lists.infradead.org; Mon, 19 Oct 2020 22:46:59 +0000 Received: by mail-pl1-x644.google.com with SMTP id h2so557327pll.11 for ; Mon, 19 Oct 2020 15:46:57 -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=TgA5Hp4Ug6aLiWA1ZPBty6/K2gDNGzFFHefUHISY9Co=; b=ffEQFuEacViM9Abhe09IoOumqbZcSNdIpq+vg0/DCnsXZq1bwC8wxAXIqTbOCxNW0b JvwlMv9ZM5OpWsJJ6V2Bphv0sNRj2ANNoREk8WMZXc4sPNTE4c2H1yOOLyau8OG8o2C+ Z5JzFhlNm9KTCaeeuLOKvlpzJhwTmUhPZYjgf3AHWe4UB2Nzm09hk/psljrYBoHBm3/M BzXs6FbdhZEwDzp6shGWLePwCzGqaLCZJ7Py2cfeGujl4rWZM3xn8vhi8ld/IibzcKut DIFZWpXqwCMIFLTZwiPeaoYQhtc8XI+U0S6NvBWRN6t8E/rXLgFBWZbq8/VLfQ4IMA21 5aqA== 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=TgA5Hp4Ug6aLiWA1ZPBty6/K2gDNGzFFHefUHISY9Co=; b=lXR+M6q4x+AJc/bQnfr9rnMpx7CN8xULPfGjxgYJhdSpRLLahCXqMBFlBNC9IRjD20 OqWynz+UADsEQrZeMbi9cpQobC3hwNBLKyAou+soBYDfzw8j4ELegxTBYvI0iuYW29Kr p0gf1KzzIi5jEW1XURnvIHiJjLYcKj3IUOlPFmfLyA5CwMyroBvWMJxsM6ENiTBl2P++ ucMCDQYZ8Ual0dNEqLFEDZhn7FgprUhGP72CgLltkeAItltt06C9uEEpbV6Rp3C/49BH BrmYDKhN+D6HT0dajoAhvgGp8Y1qVrMdH3vFhxOzNILSA9Mq/u6bOV6Wec+NHh39NCft KF5Q== X-Gm-Message-State: AOAM530tXxN/w3CWCPZAqkCCK2njJS1+S5noI+//wUnGcsuJRZPTMoMH iXWFOZC2kpH3XSSuvH1XRw1rgAFKor+7US4w X-Google-Smtp-Source: ABdhPJwizPSTEaTkS34w1xuGyj1TrvSPtraa6popNEDwVphlrTgqQJloAqq0QddqHEmqih+XFV6UMA== X-Received: by 2002:a17:90a:d80b:: with SMTP id a11mr58663pjv.205.1603147615365; Mon, 19 Oct 2020 15:46:55 -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 m13sm29993pfd.65.2020.10.19.15.46.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2020 15:46:54 -0700 (PDT) From: Kevin Hilman To: linux-amlogic@lists.infradead.org Subject: [PATCH 2/2] soc: meson: enable building drivers as modules Date: Mon, 19 Oct 2020 15:46:49 -0700 Message-Id: <20201019224649.14302-2-khilman@baylibre.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201019224649.14302-1-khilman@baylibre.com> References: <20201019224649.14302-1-khilman@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201019_184657_702172_AC1AAACD X-CRM114-Status: GOOD ( 14.93 ) 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:644 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 2d7ee1397d59..d0d67b1d192d 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..2dfcb7b6e664 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 BSD/GPL");