From patchwork Thu Apr 11 06:46:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13625472 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 59AC5CD128A for ; Thu, 11 Apr 2024 06:47:15 +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=zXd9GnuHfD5T9RBv7mwWk6quW/+XqWS1Otl5zGD9Li4=; b=o8K0DCJMqdP1ji 2f36UOP0ufJfFdm+3gd5E0sTxLmxSNBEhgOn2LMC47MceGwHnEtPoqTW65lXdSGoVnyhdqlopruYE qMmJaS94WRGfnMka4sGPA7UxNeyZMWR3UfCfwOrEHxqvN/F0X3thQVvOMVCyigFDdwh4pIxG82i7l nJJyQGoTz1kJqxHi4phSxYFFq4BttMxoA+r7pZWlZdbF7V3Nk1Ks5V8J/DUatbOY/NicyzLq4AZZo tj3XxolUelpHj3MZpx545tm0N9iid51eZu9rciK70x5EeG09FSS+h3pWce1LJvYMIqlaMZwAc5y1x lHcQA/395Lt+MzAiBqew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruoD6-0000000AemN-083i; Thu, 11 Apr 2024 06:47:00 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruoD1-0000000Aeiu-0XaK; Thu, 11 Apr 2024 06:46:56 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 86B3061FAA; Thu, 11 Apr 2024 06:46:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3F91C43390; Thu, 11 Apr 2024 06:46:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712818014; bh=saPqICVhCGR/yOaqVsxnFMPKByX7RX+rEnct888M6xY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U0GyO2FL9vi7BGaiTFI/pHzFJusV4ihtgOSiDp8X1zfDRNDFgSi4O/5nbtmos5GCE Kt+d0ZlQr+UhKv883e1MThO4g/glomoIx8NAdMKn1WoXHRRwnKj0NsjgimkVPclrcc KG5FJQ2l4MJVOgwnZ3EI+VBSDJma+HNbjt2uxSe4njgvYCtaf1E9vQWU1Rt0OqgUhm gyjRRmG1kB9aHESZTpKJKSHYNM44+ycP4BLcubHdbhh5U2QQU/1mPKfhxEuDpRjuyF ImMANFtsng8KIM6g2A9GFDamV0zK/V0UUxlSSosEBdS27lMcztD/doX7DyjUplMHfz VfPQUyCEEZVBA== From: Krzysztof Kozlowski To: Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Linus Walleij , Sascha Hauer , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , zhanghongchen , Yinbo Zhu , Bjorn Andersson , Konrad Dybcio , linux-gpio@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 4/5] pinctrl: qcom: sm7150: fix module autoloading Date: Thu, 11 Apr 2024 08:46:13 +0200 Message-Id: <20240411064614.7409-4-krzk@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240411064614.7409-1-krzk@kernel.org> References: <20240411064614.7409-1-krzk@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240410_234655_284622_1EB68B24 X-CRM114-Status: GOOD ( 10.05 ) 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 Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded based on the alias from of_device_id table. Pin controllers are considered core components, so usually they are built-in, however these can be built and used as modules on some generic kernel. Reviewed-by: Konrad Dybcio Signed-off-by: Krzysztof Kozlowski Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Bjorn Andersson --- Changes in v2: 1. Add ack --- drivers/pinctrl/qcom/pinctrl-sm7150.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/qcom/pinctrl-sm7150.c b/drivers/pinctrl/qcom/pinctrl-sm7150.c index c25357ca1963..c542f9bc6bcd 100644 --- a/drivers/pinctrl/qcom/pinctrl-sm7150.c +++ b/drivers/pinctrl/qcom/pinctrl-sm7150.c @@ -1246,6 +1246,7 @@ static const struct of_device_id sm7150_tlmm_of_match[] = { { .compatible = "qcom,sm7150-tlmm", }, { }, }; +MODULE_DEVICE_TABLE(of, sm7150_tlmm_of_match); static struct platform_driver sm7150_tlmm_driver = { .driver = {