Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp276286lqj; Wed, 10 Apr 2024 10:02:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWZ9DqBB+mSMxJsMJCBd7LEIIMHI3hxEKMylbakCN6wMce9aLvIfiFAK1NxKNqiGaHazUA5RY9ob4MpUXneZZ+cqOzjujXX8FQgSFhS7Q== X-Google-Smtp-Source: AGHT+IHQxdG8AANrUQehZbS8dWAiA4lYper90GbO0rYLmUFKwWi4LiSOJTh6J3PZmXzBZXu5hq3r X-Received: by 2002:a17:902:f712:b0:1e3:cf18:7335 with SMTP id h18-20020a170902f71200b001e3cf187335mr4158451plo.6.1712768574876; Wed, 10 Apr 2024 10:02:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712768574; cv=pass; d=google.com; s=arc-20160816; b=oGBtibDAI7Izuw3lvis8hkWSeBeERBbnZKz+i1naWKtIpPcfprDY9tDWHu/I4HS5j/ uKkifvtfFtdwD+ACnxNjDKjmDGZvmrwUmKZETjwasMB1QiIPOG6vUkLPcedGNmKVI1JH JPhfNnLFT9k0Po7wlH2beHCDk/sDc1SHmAatQSzaD5ZwR4M4ukCiB8B3ESrhFtlqWQ6i INsOzpgCfauCBb9GWpJcUtHwZFoEMzH0uDmPR+cF6VGWeyVS4eqAK6ewu3Bw22PU4D/P RxkAI0IPy8HDL0bhNK8G7ElT+Qcf45gLmhrNBE4YhR95EpsAmXbb81fmHy4Q/DU/FxhO VRwg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=1z4bFKMNhk0NfkEU/QN5H2pmLmmLK4LflnI6KkxYMXo=; fh=qawYbO/gfuivR1rbui3bCHpvSKUY31Tc7ene4gHBsSw=; b=CxIByHEhbRUeL5+HcT2XH4sKyzWIANyXpktn4iSQGS0TFcubwnEk//wIhyM/HmbGmJ /r5RCg6ms8bJhFBpriemiSKTWClZYyrCtkg4Xx+jJy9QyNVwfQ1GbszWDvVO0JE6lsO+ /OT0EGCDSbLjJcvZWtLfpWIBnbyZnlB7mYyvhkJ/j8jzfQTYhTUn/PPYhqciO5ehP2yU xFoartRNCzweg7qJsvTf51CljxK+FpxX/GiXJv+k36s8bqWIPXtukwbvX8/W2lqUSbMM +JRqIsikHanveCMPzF7iUfA2E61VOgVq7EzrYmb2V7/+mJPxJjcMygZ0qdVkmLzospg8 G9QQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=an6fpQQP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139025-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139025-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k11-20020a170902760b00b001e4b22c2809si3228938pll.611.2024.04.10.10.02.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 10:02:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139025-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=an6fpQQP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139025-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139025-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8929428200B for ; Wed, 10 Apr 2024 17:02:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 34E3417BB02; Wed, 10 Apr 2024 17:02:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="an6fpQQP" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5377517BB00; Wed, 10 Apr 2024 17:02:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712768545; cv=none; b=bM9wREkysy6Q4uGC4aMYMlMR4aXvCfDjGiouUUUXBIGLMRdwSCeMCEV1NzbKWyPz2Ij3m8t1js76uVW5XKPs/Hfbtuv1F3TedLqJ5ft24yGh7kxiHftNNkfwxKe/KO3mIC/W551fRzKPluGyHwnHyUTK61JdL1G4nSoNptXSdTk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712768545; c=relaxed/simple; bh=QjOnUyfopFRRMcjgTW7txOdo+Ae88Ip/13leO2FO7/w=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tN8PaeWuKNi/IrNwoMsDi0o1ycOGy/BZOimPiJFUULCyRkjlww1x7GKlo4IGRcEAjqdI+VrY/MqNrgxiJiQ0hIVeq/TCv0xqZF/DnWgOgFA6IVDnEj/Li91auLlNah+YuYeDqkRnhw3Zu0ijcGhIx9H3SD7SPW6vHRVFmJHGt5o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=an6fpQQP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E86DDC43390; Wed, 10 Apr 2024 17:02:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712768544; bh=QjOnUyfopFRRMcjgTW7txOdo+Ae88Ip/13leO2FO7/w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=an6fpQQPjKNGuD77EbqSH2lJ37F5yaVuRShnLg5EpdBkj0jCqjrASa7BRLmolzFZO IymiKzEkAhpZg7WE865Sg3BtlYm1Y3IZo5xEr2cIKPyA9pH3AULFNEUSaGikP8UIRQ zpiQhRQkWVdduoDXcCGI9Nypuy0N4/mIAfqhQNnbPHuHzCaj2gbIei1AQZZ5iPtfwN oWBB88KfTt1YqYzElCyMJw+DB806oMjcryH0JNwA3bP6om43Xw763sxs3J/LmL3BV0 mEA3CpgV3MYzUx0kkDiKXCs4j1FTvECLbGkkFxAskhX+jxKnl3hVJXzOAdac+DoQ2r NyeDxzKNMxfjw== 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 4/5] pinctrl: qcom: sm7150: fix module autoloading Date: Wed, 10 Apr 2024 19:01:49 +0200 Message-Id: <20240410170150.248428-4-krzk@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240410170150.248428-1-krzk@kernel.org> References: <20240410170150.248428-1-krzk@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. Signed-off-by: Krzysztof Kozlowski --- 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 = { -- 2.34.1