summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorLiao Chen <liaochen4@huawei.com>2024-08-20 14:26:04 +0200
committerLinus Walleij <linus.walleij@linaro.org>2024-08-24 16:46:33 +0200
commit0f978da67aaeb86c1a3804ce533939b3f90530eb (patch)
treec85680c845e728e56edbda1e0fe66debd37228bb /drivers/pinctrl
parentpinctrl: pinctrl-zynq: fix module autoloading (diff)
downloadlinux-0f978da67aaeb86c1a3804ce533939b3f90530eb.tar.xz
linux-0f978da67aaeb86c1a3804ce533939b3f90530eb.zip
pinctrl: bcm2835: fix module autoloading
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table. Signed-off-by: Liao Chen <liaochen4@huawei.com> Acked-by: Florian Fainelli <florian.fainelli@broadcom.com> Link: https://lore.kernel.org/20240820122604.42736-1-liaochen4@huawei.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/bcm/pinctrl-bcm2835.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pinctrl/bcm/pinctrl-bcm2835.c b/drivers/pinctrl/bcm/pinctrl-bcm2835.c
index 184641e221d4..cc1fe0555e19 100644
--- a/drivers/pinctrl/bcm/pinctrl-bcm2835.c
+++ b/drivers/pinctrl/bcm/pinctrl-bcm2835.c
@@ -1280,6 +1280,7 @@ static const struct of_device_id bcm2835_pinctrl_match[] = {
},
{}
};
+MODULE_DEVICE_TABLE(of, bcm2835_pinctrl_match);
static int bcm2835_pinctrl_probe(struct platform_device *pdev)
{