mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
gpio: cadence: Add missing MODULE_DEVICE_TABLE
[ Upstream commit 1e948b1752 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
515181e38e
commit
2bfa3ab89c
|
|
@ -278,6 +278,7 @@ static const struct of_device_id cdns_of_ids[] = {
|
||||||
{ .compatible = "cdns,gpio-r1p02" },
|
{ .compatible = "cdns,gpio-r1p02" },
|
||||||
{ /* sentinel */ },
|
{ /* sentinel */ },
|
||||||
};
|
};
|
||||||
|
MODULE_DEVICE_TABLE(of, cdns_of_ids);
|
||||||
|
|
||||||
static struct platform_driver cdns_gpio_driver = {
|
static struct platform_driver cdns_gpio_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user