summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorZou Wei <zou_wei@huawei.com>2021-05-12 06:17:47 +0300
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2021-05-12 14:28:04 +0300
commit1e948b1752b58c9c570989ab29ceef5b38fdccda (patch)
treec29e459de855484804009513e64cbdea13ab681f /drivers/gpio
parent6efb943b8616ec53a5e444193dccf1af9ad627b5 (diff)
downloadlinux-1e948b1752b58c9c570989ab29ceef5b38fdccda.tar.xz
gpio: cadence: Add missing MODULE_DEVICE_TABLE
This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zou Wei <zou_wei@huawei.com> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-cadence.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-cadence.c b/drivers/gpio/gpio-cadence.c
index a4d3239d2594..4ab3fcd9b9ba 100644
--- a/drivers/gpio/gpio-cadence.c
+++ b/drivers/gpio/gpio-cadence.c
@@ -278,6 +278,7 @@ static const struct of_device_id cdns_of_ids[] = {
{ .compatible = "cdns,gpio-r1p02" },
{ /* sentinel */ },
};
+MODULE_DEVICE_TABLE(of, cdns_of_ids);
static struct platform_driver cdns_gpio_driver = {
.driver = {