Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp93654ybt; Tue, 7 Jul 2020 17:04:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqLVqBW+hefxX0qon36iqacz9H7hPxOJTR5vXKrvtnPc5sCzkB6+f7iSyu2JHeV4gvc4C6 X-Received: by 2002:a17:906:d92e:: with SMTP id rn14mr52276636ejb.314.1594166655511; Tue, 07 Jul 2020 17:04:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594166655; cv=none; d=google.com; s=arc-20160816; b=bd5tGf8EzmxckhhkKLueDcmvZ1FuX++vNbs8EzpAblgE2+6YRn3yD9uAGX1da4DsFW mzxVD7XL0s8hPIC4U1OlAs5vwXTuNl6V3NDsLlO1K+miRCvp3ywygPTQyye3tnaNGIva /H1rqimxKWVF7IWvtjypbKVcQrtkM/PXi4VsC2wLWGkAdGW3YReJQTiiNZ5vTg3ooNt1 r6ee97YFljuOmAfOALf83j5eIkOKYMoMGQMxFqgo9Kk33ES2PTXldpnOUNheeCzWdgqo i+vysew1PAiAhi9SUMTr1OjG+UDKixtKpPocYCBlInzQujPEfLDfsyRW1mpW489vz79z eEdw== 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=05obkccPzaSPZPEk4J6WHBDz0CrHSjH42fq0NqAWrMQ=; b=nItAj0lQUjY6+oEaWBJLmCR1YgHY7upNiGV7DSCTGCp7BdIa+1gIgo9L1FvfkjbkCf 49xBvbFbFnv92Qli72iNY8EtThWKhGnHa/m8cowA3dqR22H4FaVyNyemgIoFHDkaZNu7 nhpyLPRPQJiNMcCbtjAGf8i/Uw5B0SIODyn2KJBua2OUeBtwUgM9Qrh485dT9nxJ5Vf3 rTs/zFMJD18TysnHMF40wT5b+5KGVa06ifpuJ/W8PWDHs1DPtra3/Du6uaPZLAHuKE+M IJ7yf+VRtXHWfr3QWnMRVswaqC3JH46Vyi5D7KuiIxNGUwmqomTT1xp2GG3PIaUjpjE7 vj9A== 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 l12si17198947ejn.435.2020.07.07.17.03.52; Tue, 07 Jul 2020 17:04:15 -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 S1728894AbgGGX2s (ORCPT + 99 others); Tue, 7 Jul 2020 19:28:48 -0400 Received: from inva021.nxp.com ([92.121.34.21]:42926 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728201AbgGGX2s (ORCPT ); Tue, 7 Jul 2020 19:28:48 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id C3EEC200988; Wed, 8 Jul 2020 01:28:45 +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 10CE220000C; Wed, 8 Jul 2020 01:28:37 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 30F76402C8; Wed, 8 Jul 2020 07:28:26 +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, linus.walleij@linaro.org, bgolaszewski@baylibre.com, oleksandr.suvorov@toradex.com, aford173@gmail.com, andreas@kemnade.info, hverkuil-cisco@xs4all.nl, 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, linux-gpio@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH 1/3] gpio: mxc: Support module build Date: Wed, 8 Jul 2020 07:25:21 +0800 Message-Id: <1594164323-14920-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 Change config to tristate, add module device table, module author, description and license to support module build for i.MX GPIO driver. Signed-off-by: Anson Huang --- drivers/gpio/Kconfig | 2 +- drivers/gpio/gpio-mxc.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 05e0801..4d09ec5 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -397,7 +397,7 @@ config GPIO_MVEBU select REGMAP_MMIO config GPIO_MXC - def_bool y + tristate "i.MX GPIO support" depends on ARCH_MXC || COMPILE_TEST select GPIO_GENERIC select GENERIC_IRQ_CHIP diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c index 64278a4..643f4c55 100644 --- a/drivers/gpio/gpio-mxc.c +++ b/drivers/gpio/gpio-mxc.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -158,6 +159,7 @@ static const struct of_device_id mxc_gpio_dt_ids[] = { { .compatible = "fsl,imx7d-gpio", .data = &mxc_gpio_devtype[IMX35_GPIO], }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, mxc_gpio_dt_ids); /* * MX2 has one interrupt *for all* gpio ports. The list is used @@ -604,3 +606,7 @@ static int __init gpio_mxc_init(void) return platform_driver_register(&mxc_gpio_driver); } subsys_initcall(gpio_mxc_init); + +MODULE_AUTHOR("Shawn Guo "); +MODULE_DESCRIPTION("i.MX GPIO Driver"); +MODULE_LICENSE("GPL"); -- 2.7.4