Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2970465ybt; Mon, 29 Jun 2020 11:46:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOMEbHlHwn4J/gHNe96I+3C7MvNVTPHjLDpRwYey7xy9chcVNQEj/1q/0jX6Onq3UzvSy+ X-Received: by 2002:a50:f058:: with SMTP id u24mr19175036edl.351.1593456384492; Mon, 29 Jun 2020 11:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593456384; cv=none; d=google.com; s=arc-20160816; b=ocAkpFanX5BhTGnLovZUvwcV4f+pLUCvfkrVZKM7S0KLcKrb8e3wNS7H10Ndr33mlR 0NqObHshdijrBAgo3NuIYuZbzCPrEcFCFHvWhhY+tIEXiI/J0rsYpYED4OUNg4uSUlEx PjPzVSs2v3JMqrqhwWaLOo+TN5gJJ6z23l+NN0ZGsePMYshtKEBdz8fZLDOhKvrdzQfM zfsm+KvN+inxaAZkzrRMrZ5AShlw7aDRfW1H7pSqv5Duy6/PA/zU9daQVd1jSMkg98nK 92TVg1/CDhN5zmV/kp6FyDp9WLS+lcMebeKpktW3WJcHyzZ+pEzKF9xukCkWfjucrp5D NY0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=5jtX/e21VS7seqqNvlqmwt9U7dw7RxKeXylDWRDe94U=; b=liLNxFRffqHSAz0NssJ1ndqvVVSXLfv6KfuLwbAaiuXd2VcHbfQC93tSDIaREpcCa6 9D01T/9s2AnINb6tOReYk6H7rQ6NnkWULD9J2QGeihiFSq28GUjJyKFrL1IiCHy+asef reifYVTHh9xwPMw8IWRSmsUHi+085n8eSWkqRjyr9/Omc4zGrAywT3hzOJMoShhXct8n AzaaETOmxfFkB5IBdCm4cVYUCRcJY8T9r3tVT1/10ZaYgHR/Xp0bFgoV2ZE8/JyzjMg4 s3NzMX7o8hHmQR94Y4BiwVdx9rD45g7JkQ+4ejLH3iPXQcV2EpmEhN8KSrrkbH2w39gG heCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z16si289471ejw.386.2020.06.29.11.46.01; Mon, 29 Jun 2020 11:46:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729252AbgF2Sox (ORCPT + 99 others); Mon, 29 Jun 2020 14:44:53 -0400 Received: from inva021.nxp.com ([92.121.34.21]:53502 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726995AbgF2Soo (ORCPT ); Mon, 29 Jun 2020 14:44:44 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 8480A201028; Mon, 29 Jun 2020 12:25:33 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 01D6B20101F; Mon, 29 Jun 2020 12:25:26 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 9807F402A0; Mon, 29 Jun 2020 18:25:16 +0800 (SGT) From: Anson Huang To: linux@armlinux.org.uk, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, catalin.marinas@arm.com, will@kernel.org, p.zabel@pengutronix.de, arnd@arndb.de, stefan.agner@toradex.com, oleksandr.suvorov@toradex.com, bjorn.andersson@linaro.org, leoyang.li@nxp.com, vkoul@kernel.org, geert+renesas@glider.be, olof@lixom.net, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH 1/3] reset: imx7: Support module build Date: Mon, 29 Jun 2020 18:13:41 +0800 Message-Id: <1593425623-31810-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add module device table, module license to support module build. Signed-off-by: Anson Huang --- drivers/reset/Kconfig | 4 ++-- drivers/reset/reset-imx7.c | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig index d9efbfd..033ab60 100644 --- a/drivers/reset/Kconfig +++ b/drivers/reset/Kconfig @@ -65,9 +65,9 @@ config RESET_HSDK This enables the reset controller driver for HSDK board. config RESET_IMX7 - bool "i.MX7/8 Reset Driver" if COMPILE_TEST + tristate "i.MX7/8 Reset Driver" depends on HAS_IOMEM - default SOC_IMX7D || (ARM64 && ARCH_MXC) + depends on SOC_IMX7D || (ARM64 && ARCH_MXC) || COMPILE_TEST select MFD_SYSCON help This enables the reset controller driver for i.MX7 SoCs. diff --git a/drivers/reset/reset-imx7.c b/drivers/reset/reset-imx7.c index d170fe6..4660c93 100644 --- a/drivers/reset/reset-imx7.c +++ b/drivers/reset/reset-imx7.c @@ -8,7 +8,7 @@ */ #include -#include +#include #include #include #include @@ -386,6 +386,7 @@ static const struct of_device_id imx7_reset_dt_ids[] = { { .compatible = "fsl,imx8mp-src", .data = &variant_imx8mp }, { /* sentinel */ }, }; +MODULE_DEVICE_TABLE(of, imx7_reset_dt_ids); static struct platform_driver imx7_reset_driver = { .probe = imx7_reset_probe, @@ -395,3 +396,4 @@ static struct platform_driver imx7_reset_driver = { }, }; builtin_platform_driver(imx7_reset_driver); +MODULE_LICENSE("GPL v2"); -- 2.7.4