Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp276674lqj; Wed, 10 Apr 2024 10:03:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVuHfSwYan5EQbtLQoy/m6Sibf7KoW7B7WvV8YnNI/TREMLPTz5J4sS/DejwpLyRjznQ675/lCTRXEaroHYB46jG0IOUHMzm4q2F71oiQ== X-Google-Smtp-Source: AGHT+IE0vJ4edWY29FoG4WKYVG30QzqhBR+CVmYN5/haKyxLdMd+Mtnn4IISutbfEgexzgeG89rX X-Received: by 2002:a05:6830:1e08:b0:6ea:1d8e:19fc with SMTP id s8-20020a0568301e0800b006ea1d8e19fcmr3463901otr.34.1712768605232; Wed, 10 Apr 2024 10:03:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712768605; cv=pass; d=google.com; s=arc-20160816; b=FDGWfvkftP27nMUPm2MJpYsKFqgky8d9jeRLi3k9e46QIlPyYqv7AJw11TDMtQjA8x 4YC5Nt6gcGKtqQ4mqzafDx4pVBJOR/PY2VrBZRr6rukW7lhSwmJHF7mxVNVVsyZXtw7t CjpcwNiLRh371NQLtdoKfdTtMqwNR+4vRyTQnfEbtsMgSrtaSswFgdJjcwNOeFs4ZT0H VoNYi63+lQDnrFVAUJXDsUnfp03nT7wnaFlWXpUZX7M9j1SdIsPv+k8rak5y/CDaYdI0 kLQwr+1Zqzug/BbE4oo8ul2MgQ/LkrCy5/cSrgYkGnKGxy5jGoi2hJ72d6mkGDcw04Ti BeHw== 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=w3v6sLqd6YetoC5RfK43dqjUp0PwwZbGapxZUh2Pl8E=; fh=qawYbO/gfuivR1rbui3bCHpvSKUY31Tc7ene4gHBsSw=; b=qAnbyqtYnReReKIQJMEhTIRtddjnMKebTuaghf5gTPx4To3/f/3mXgY9YJFQng9PAU 4HLc4nj5F2QH7dLPdCYOMrq9OdX26KNsg8u4CTrmhgDAk/1m8WCRIkk/267IjpCluX4j /SJJpsh3ZWsCQj048N4zWS1dKQH79LtMP5XWYTDsX/DU/Nw1Wq1dSUl32r/wIkIX8B7Y Ku1nYuMsKzb1JB4jNL0kutJAOoNSAwc/Ksa+bCfJXCf/3a2yONSlHMWVA3E5V+pLpAF3 AioxJpDvr59dJbV+nJklj705KxW4NJD8sz4xhFUTU/X0f8Ht87qX9HoDPxMYDZOlN2Bz oDvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZACkiovP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139024-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139024-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. [147.75.199.223]) by mx.google.com with ESMTPS id m57-20020ac5cff9000000b004d420f6a1d8si1692285vkf.30.2024.04.10.10.03.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 10:03:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139024-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZACkiovP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139024-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139024-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 A0BE41C2333C for ; Wed, 10 Apr 2024 17:02:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A48C517BB36; Wed, 10 Apr 2024 17:02:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZACkiovP" 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 AAAF917BB08; Wed, 10 Apr 2024 17:02:18 +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=1712768538; cv=none; b=NRpMphFvNcNOD9+px7Lm/0guLlYRfQRRm4WCVX+6PBRQcS4bPL1fvnOsuSOio5OC0NvkQh9T+f8WGIO3K+ewBuFA728+/9U7/0ELNQStolgcstKB9PaNAw1K+2XdYj2NH9QzujPeLJGFK7AFsZCZw/bUbKJI2oYEmsHYu6N1+Bk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712768538; c=relaxed/simple; bh=J8Xz0tO7wTFJkDIRc8XHLYUNNwxXvSfpj3JcT9M6hUo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=PCfOSbSdmmtGOkprZv6i9ay4Mk4QEZqrUmb1RPEijKtIG783UEUC3ZYjBgfswmrY0i8I96Rkwp4bp64zrxvnCHzM4EUb0sYvUiRwI02fO0nB4zbDzaUkgO7/7lBqttrCs7G0ggtjPUvC3M81yfD2tJypDHzUp9OvoOshSIEi5iU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZACkiovP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49A5BC433C7; Wed, 10 Apr 2024 17:02:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712768538; bh=J8Xz0tO7wTFJkDIRc8XHLYUNNwxXvSfpj3JcT9M6hUo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZACkiovPiGAvRBWw0ptxzDvez/h/OO9ESEpjSpxcblWyNi8XG5hw6rSN0T8jO7Ztv qNSb/TVDDZGnyYwLmv0S6BNnqWDnRluQh52PV1ER1KzulQCG8y0ZqJovttvtgenbGZ +Y6ahqjQ5hK6ZdZSL37/EASTHl3YlFSkpOv/oqCrbZTfQ1s82s4MYFUwqDWI4GQjQd 6ITbtEspXCEjlyY9jRsN7qsNYh9g7HJC7aPcJGu9JK4s4OkOMeeyNI3obYx6c/tPot +9dUiEowanr2b+hHORsbTnvY5fk+csFAQoQnHysD/IMls9R+5Sm9NDQ7+h18lzkQL5 ALkigSot+8hMA== 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 3/5] pinctrl: loongson2: fix module autoloading Date: Wed, 10 Apr 2024 19:01:48 +0200 Message-Id: <20240410170150.248428-3-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/pinctrl-loongson2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/pinctrl-loongson2.c b/drivers/pinctrl/pinctrl-loongson2.c index a72ffeca26fb..4d4fbeadafb7 100644 --- a/drivers/pinctrl/pinctrl-loongson2.c +++ b/drivers/pinctrl/pinctrl-loongson2.c @@ -286,6 +286,7 @@ static const struct of_device_id loongson2_pinctrl_dt_match[] = { }, { } }; +MODULE_DEVICE_TABLE(of, loongson2_pinctrl_dt_match); static struct platform_driver loongson2_pinctrl_driver = { .probe = loongson2_pinctrl_probe, -- 2.34.1