Commit e764faef authored by Florian Fainelli's avatar Florian Fainelli Committed by Wim Van Sebroeck

watchdog: bcm7038_wdt: Add platform device id for bcm63xx-wdt

In order to phase out bcm63xx_wdt and use bcm7038_wdt instead, introduce
a platform_device_id table that allows both names to be matched.
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20211112224636.395101-6-f.fainelli@gmail.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent bc0bf9e9
...@@ -223,8 +223,15 @@ static const struct of_device_id bcm7038_wdt_match[] = { ...@@ -223,8 +223,15 @@ static const struct of_device_id bcm7038_wdt_match[] = {
}; };
MODULE_DEVICE_TABLE(of, bcm7038_wdt_match); MODULE_DEVICE_TABLE(of, bcm7038_wdt_match);
static const struct platform_device_id bcm7038_wdt_devtype[] = {
{ .name = "bcm63xx-wdt" },
{ /* sentinel */ },
};
MODULE_DEVICE_TABLE(platform, bcm7038_wdt_devtype);
static struct platform_driver bcm7038_wdt_driver = { static struct platform_driver bcm7038_wdt_driver = {
.probe = bcm7038_wdt_probe, .probe = bcm7038_wdt_probe,
.id_table = bcm7038_wdt_devtype,
.driver = { .driver = {
.name = "bcm7038-wdt", .name = "bcm7038-wdt",
.of_match_table = bcm7038_wdt_match, .of_match_table = bcm7038_wdt_match,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment