Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp275871lqj; Wed, 10 Apr 2024 10:02:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzzdHTzRqpSZv67kwJca4Yy6cRua/7Mg8rkHx4fYj3xbwMuvvIX6pBof3SYfF4GoP8JSNN5e2Wg5QKksYSSji2HbJepK2xH7kmlHiKOA== X-Google-Smtp-Source: AGHT+IEmKWcycVvSax2CYAiEyxeE+yngvuAQd/513/jgxlO893xNmwY9Xkbg1/xhLuZA6MvWXKbU X-Received: by 2002:a17:906:350c:b0:a46:92a1:6459 with SMTP id r12-20020a170906350c00b00a4692a16459mr2144066eja.17.1712768547648; Wed, 10 Apr 2024 10:02:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712768547; cv=pass; d=google.com; s=arc-20160816; b=ha4c3MUwe8p7ic4eXcMw/ya+HFSHM7pwvVPFFK6Ix+HZE8EnLpK6+VIqGTlR/at1F5 hR1v4B3WXqOtQ4QbLxhVne16D5xPQg75oOFfv5bxkZfklV4utRV6g94Iq4aAvZsxxnuj 6nJuxuffyj+9Y+x7j7Wkr2KaH8flDPmRWnSlJQSpE660GwGWvVUeSfXYELZA8nu2BuUq BW8mdKqJmD3TIN3pBVajshfs1U7Uovkrccccyu/JtMPtHIzaLo7CDTD0PtjJESqxl0mw nPz/SDFr9CjREsoqtSaCxhm0i9iDphpR59e/S+iy/TUDliruN67MvCWATHFQR26Tj/4e WfzA== 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=VnukKObQ797b5zdj2/KOc5yx4sL2lPKpVF6d5nSuKUM=; fh=qawYbO/gfuivR1rbui3bCHpvSKUY31Tc7ene4gHBsSw=; b=owfANLt6snlDKvKOusySwGePXF7rUMSUgpXW2ocxNUeDgLj6fZU/CfjQPPJCN7iHLJ AQvnWyzE681JzktDll72NkT/1dDT4ueDMcuUsmDZhWGgpCORxPVxT1Jp6eVlsuTlKRvf SYmcWkf1JN3tn+j4+wlLhbEjVoPhgk1FUfnhSGg36mi1mOgtqugfbWWujNazFP3vxric ReHcb0/qxMDrbxl43hLqzlGRKnk9zvSE076kQ5a/xMzRWzMyAezr1sb64kxLJBj30b0N I6zviXkKRxlMGeNFXU6Xis59pGAtBrKhRCz9gVxr5l9byH69iyHaQcNxfNIOtgL8BT5X CBXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T3TiokUV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139023-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139023-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id lg3-20020a170906f88300b00a51d8a27a32si3014049ejb.422.2024.04.10.10.02.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 10:02:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139023-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T3TiokUV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139023-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139023-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6285F1F21C2E for ; Wed, 10 Apr 2024 17:02:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE03217BB23; Wed, 10 Apr 2024 17:02:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="T3TiokUV" 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 09E1017B514; Wed, 10 Apr 2024 17:02:11 +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=1712768532; cv=none; b=eSMzHcBLd4N4rECT8VpfyYLlhHIPHW50zDIT0beVzeNCnuOQgrifDpZtihf8qJfTPo3ot9Bqp3pLQmzv/BUQvCMFPIsAtXNXJprynBzhMNrSWL03c+Afe6Vi38kN0x2TaVd346xGUi5HNhn4tIFsC6fX1n+7ZnUkTqrMNxX1aTc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712768532; c=relaxed/simple; bh=UreIdQFDaJPTJRQHIFlJ3qYvDMdt0vj/yTnEoOJ3Q+c=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BD10QOnVnGlJdDBXS1dm90VmoZxp8EhwOumMQ1CQp0kAg7Bex7BFZ2Y484xg1x7s7hSu6Ucrh9mnWEqO2ThRpRy8gEcfLPMllyR1dWWbVYBIIHFvwD0kei5i8wjLCEvNAvPRFDnCltgQ3+9M6nzDZ9eED9a+yIrXwZMVENuNaTo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=T3TiokUV; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8B92C43394; Wed, 10 Apr 2024 17:02:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712768531; bh=UreIdQFDaJPTJRQHIFlJ3qYvDMdt0vj/yTnEoOJ3Q+c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T3TiokUVrqi6QazyAYeehv570Re+STaAnOo+2acOtaHn9CO3TXb+oWo1QllIJtcDI SY7K7Y7BBnhSTy73+CdIcqBB0q65mWO8FuN/RIhTtbjhNvjuOszJ0mM5WZwxucYpRE je2LSm7oW7MAFjL/uuxVpC8IU50C6JUcvc8gpwXVhiFVWBCXrBowsBgC9XaTVkGw88 d69GnjaWSWUXQIVr/929tead12fVRBEvUvtSnY9lWOwzQkGfxao2WSvB7nfMHbMFtO kVtsCFSAqflOXBbhPP35X7Sd3x2ggwMClj11bQcXhe697BHmoiJYjUAYJnjbQEF3/1 xJ9Ho6eBQDhlQ== 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 2/5] pinctrl: mediatek: fix module autoloading Date: Wed, 10 Apr 2024 19:01:47 +0200 Message-Id: <20240410170150.248428-2-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/mediatek/pinctrl-mt6765.c | 1 + drivers/pinctrl/mediatek/pinctrl-mt6779.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/pinctrl/mediatek/pinctrl-mt6765.c b/drivers/pinctrl/mediatek/pinctrl-mt6765.c index f6ec41eb6e0c..72609cf74760 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mt6765.c +++ b/drivers/pinctrl/mediatek/pinctrl-mt6765.c @@ -1086,6 +1086,7 @@ static const struct of_device_id mt6765_pinctrl_of_match[] = { { .compatible = "mediatek,mt6765-pinctrl", .data = &mt6765_data }, { } }; +MODULE_DEVICE_TABLE(of, mt6765_pinctrl_of_match); static struct platform_driver mt6765_pinctrl_driver = { .driver = { diff --git a/drivers/pinctrl/mediatek/pinctrl-mt6779.c b/drivers/pinctrl/mediatek/pinctrl-mt6779.c index 62d4f5ad6737..591905e4132a 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mt6779.c +++ b/drivers/pinctrl/mediatek/pinctrl-mt6779.c @@ -762,6 +762,7 @@ static const struct of_device_id mt6779_pinctrl_of_match[] = { { .compatible = "mediatek,mt6779-pinctrl", .data = &mt6779_data }, { } }; +MODULE_DEVICE_TABLE(of, mt6779_pinctrl_of_match); static struct platform_driver mt6779_pinctrl_driver = { .driver = { -- 2.34.1