Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp277058lqj; Wed, 10 Apr 2024 10:03:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUyhvEgEqYCcCGFT6JRuq5ZQofQoN4oGtS523nauommtZzG4sJwYkCyEAYPpTWfm64Wpro+IneskPNuEJOkVVv5vm4rnaxuqd5lo1pCpQ== X-Google-Smtp-Source: AGHT+IFohyqWNFW/OUNSzT7DamsxaMPWoYSyYtrfz/unfGl1ldcdygksiCaHoWmXVqVd+xTh6mDn X-Received: by 2002:a05:620a:1a8c:b0:78d:4745:e65a with SMTP id bl12-20020a05620a1a8c00b0078d4745e65amr4495133qkb.54.1712768632855; Wed, 10 Apr 2024 10:03:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712768632; cv=pass; d=google.com; s=arc-20160816; b=TaKdJ8HUShitFjq5lJhR7tBNKymhokS94GGvdAZiHW2i5blbBk3haiIIx0YVSG8rTQ h5T68davKMfdlWthZoJxqOhCSlv/fuBy5A59mQqQjD6s+uadkWkZJKhmWKprTWm9R56i 3sRKnDi9iwJe4qAy4QeHBejtUdjvUytRpA1T4i4klOEF7vFt75MZtdY9Qb5SOK4Eofd0 YtDkrGZyoZhOuVCfiLptC7dD/9EdTR5wDEREuSROkIDmb0pq6+l4KWRbSoAG4h5m+F3f yj4Bhzb0z1DeyxTuAowOnAX0jWPnMii+3UvXmOHXBqqAbnQVTpdwz3DIM7U0wXgimrx0 Vk4Q== 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=WMo4VQOtIQgh6P7rcQ0swkLEqu/GppVVSBeIDlCnmHY=; fh=qawYbO/gfuivR1rbui3bCHpvSKUY31Tc7ene4gHBsSw=; b=M4FSn2DdyfKE1nhu2wR8A8Mq8NOj7MRpO1xguUagTX4aGIt1LgoHHhqPR67GtVBJCV 7zdZoz4oHVynu6Cik38QBNgjW14ZN/TSX/XWb6HCU4l7pLdZnHJB3MpwoxhhNfy5ppVF DJWU22wpNks/fHQhJnpf9623IQoQApF2TsPCVRosMnB1J03gq52nlXY3AW2Lf/I4SAKc T3+AXQ6YSbbvvnFqEMKAkRHlpllTfQpllsnuMqnCDCtkdpnkVgog5RCWjrzcjGYsaoP2 xIHxBmeNvINnbpyzEAbFTvUcPSWo8SIrMdGY4dFrlm1LE/g9YZjvqyH0dK1SNE/MDRZ1 mcMw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eaaofxEP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139026-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139026-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g21-20020a05620a13d500b0078d5eeb8abesi8947139qkl.166.2024.04.10.10.03.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 10:03:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139026-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eaaofxEP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139026-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139026-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 91A6C1C22C1C for ; Wed, 10 Apr 2024 17:03:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 97BBD17BB2B; Wed, 10 Apr 2024 17:02:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eaaofxEP" 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 B7DBE17BB03; Wed, 10 Apr 2024 17:02:30 +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=1712768550; cv=none; b=fWjrHW1n0nqFgVHvzZHdoEgc7Hd/+Gyj90LqK2sO5k/lYpmqH7c2yfzsAYttybqGkGqZFDr8IdpVzW6tILq721dTjUL+CObdciVw2PPbhF0yR/SDJ2+OZqnnHryAUetursbg84St3xrxX7192Jqo6OtWVLzSs7W1fhDFRcnEfEU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712768550; c=relaxed/simple; bh=X5Xl+Apo8HTXG6kNLMLPU23egnj69bbwrAOoPVmLBzw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pfeIfNlM6i5JSLa9TP8SL1/S5eWlS9i/JfE64B2adVCiWXvNaXQAxx3c8FpFMoAfcTGqeaHZMlfcFIvC2bd5FBJGCIb//UQFZPyXRUj4sntmI/FJQE81irKMAExmc1OR7XkCBlzISqyTs0w/ApKWFIDWRW47QYwO/YN8xRJH0PA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eaaofxEP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92E12C433B1; Wed, 10 Apr 2024 17:02:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712768550; bh=X5Xl+Apo8HTXG6kNLMLPU23egnj69bbwrAOoPVmLBzw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eaaofxEPTrlwI7/JwDfIgCY4I/zqZCAz4yDo9ua+4mP5AxSehSI2PP5pBwe1W14Wt RiaFNXRqtw3/EGbbeduCBluKm/YbSLbsh8jhiHrGfN6MSYVqBcrN/kwwYVQdvFeO3o 3ia8P70evuxbLmjkHFFvXcNYtYpfEwDclm9DMIUfd9TATx+rE1lcSB2MV++DrTtVB1 3hDBo6NHfBi0+YNjsQjKWb0lNuI7ai2tRvbDl/8VIqjJCm/URcK52tsYbt9oilL3HW 8NkPCkdXKSCrhAQcbzTq0AOv3a0RaUJyswXOsndrhHcP3IOBh/YEyKACwS5Xd5wnzW CpIbQRycVkNLw== 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 5/5] pinctrl: realtek: fix module autoloading Date: Wed, 10 Apr 2024 19:01:50 +0200 Message-Id: <20240410170150.248428-5-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 Signed-off-by: Krzysztof Kozlowski --- drivers/pinctrl/realtek/pinctrl-rtd1315e.c | 1 + drivers/pinctrl/realtek/pinctrl-rtd1319d.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/pinctrl/realtek/pinctrl-rtd1315e.c b/drivers/pinctrl/realtek/pinctrl-rtd1315e.c index 10afc736a52b..86f919122bed 100644 --- a/drivers/pinctrl/realtek/pinctrl-rtd1315e.c +++ b/drivers/pinctrl/realtek/pinctrl-rtd1315e.c @@ -1414,6 +1414,7 @@ static const struct of_device_id rtd1315e_pinctrl_of_match[] = { { .compatible = "realtek,rtd1315e-pinctrl", }, {}, }; +MODULE_DEVICE_TABLE(of, rtd1315e_pinctrl_of_match); static struct platform_driver rtd1315e_pinctrl_driver = { .driver = { diff --git a/drivers/pinctrl/realtek/pinctrl-rtd1319d.c b/drivers/pinctrl/realtek/pinctrl-rtd1319d.c index b1a654ac30dc..474c337d2d05 100644 --- a/drivers/pinctrl/realtek/pinctrl-rtd1319d.c +++ b/drivers/pinctrl/realtek/pinctrl-rtd1319d.c @@ -1584,6 +1584,7 @@ static const struct of_device_id rtd1319d_pinctrl_of_match[] = { { .compatible = "realtek,rtd1319d-pinctrl", }, {}, }; +MODULE_DEVICE_TABLE(of, rtd1319d_pinctrl_of_match); static struct platform_driver rtd1319d_pinctrl_driver = { .driver = { -- 2.34.1