Skip to content

Commit 1e948b1

Browse files
SamuelZOUbrgl
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 <[email protected]> Signed-off-by: Zou Wei <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 6efb943 commit 1e948b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)