Skip to content

Commit 1e948b1

Browse files
Zou Weibrgl
authored andcommitted
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>
1 parent 6efb943 commit 1e948b1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpio/gpio-cadence.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ static const struct of_device_id cdns_of_ids[] = {
278278
{ .compatible = "cdns,gpio-r1p02" },
279279
{ /* sentinel */ },
280280
};
281+
MODULE_DEVICE_TABLE(of, cdns_of_ids);
281282

282283
static struct platform_driver cdns_gpio_driver = {
283284
.driver = {

0 commit comments

Comments
 (0)