diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2021-11-12 14:46:34 -0800 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2021-12-28 14:03:02 +0100 |
commit | e764faef774b931994d31a856d786734691ab26e (patch) | |
tree | 0fd8e42731ebb066e93387da91d944a69006f10d /drivers/watchdog/bcm7038_wdt.c | |
parent | bc0bf9e9ac3ba49d1c7ab267a58204b525ac054b (diff) | |
download | linux-stable-e764faef774b931994d31a856d786734691ab26e.tar.gz linux-stable-e764faef774b931994d31a856d786734691ab26e.tar.bz2 linux-stable-e764faef774b931994d31a856d786734691ab26e.zip |
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: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20211112224636.395101-6-f.fainelli@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/watchdog/bcm7038_wdt.c')
-rw-r--r-- | drivers/watchdog/bcm7038_wdt.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/watchdog/bcm7038_wdt.c b/drivers/watchdog/bcm7038_wdt.c index 506cd7ef9c77..8656a137e9a4 100644 --- a/drivers/watchdog/bcm7038_wdt.c +++ b/drivers/watchdog/bcm7038_wdt.c @@ -223,8 +223,15 @@ static const struct of_device_id 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 = { .probe = bcm7038_wdt_probe, + .id_table = bcm7038_wdt_devtype, .driver = { .name = "bcm7038-wdt", .of_match_table = bcm7038_wdt_match, |