summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-cadence.c
diff options
context:
space:
mode:
authorZou Wei <zou_wei@huawei.com>2021-05-12 11:17:47 +0800
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2021-05-12 13:28:04 +0200
commit1e948b1752b58c9c570989ab29ceef5b38fdccda (patch)
treec29e459de855484804009513e64cbdea13ab681f /drivers/gpio/gpio-cadence.c
parent6efb943b8616ec53a5e444193dccf1af9ad627b5 (diff)
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/gpio-cadence.c')
-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 = {