Skip to contentSkip to conversation

watchdog: bd70528: Add MODULE_ALIAS to allow module auto loading

PATCH In review Matti Vaittinen 2 participants 2 messages Oct 23, 2019 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 watchdog: bd70528: Add MODULE_ALIAS to allow module auto loading

The bd70528 watchdog driver is probed by MFD driver. Add MODULE_ALIAS in order to allow udev to load the module when MFD sub-device cell for watchdog is added.

Fixes bbc88a0ec9f37 ("watchdog: bd70528: Initial support for ROHM BD70528 watchdog block")

---

I'm not really sure if this is a bug-fix or feature but I guess the Fixes tag won't harm, right?

 drivers/watchdog/bd70528_wdt.c | 1 +
 1 file changed, 1 insertion(+)
drivers/watchdog/bd70528_wdt.c +1 -0
index b0152fef4fc7..bc60e036627a 100644
@@ -288,3 +288,4 @@ module_platform_driver(bd70528_wdt);
 MODULE_AUTHOR("Matti Vaittinen <[email protected]>");
 MODULE_DESCRIPTION("BD70528 watchdog driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:bd70528-wdt");
Signature · 14 lines
2.21.0


-- 
Matti Vaittinen, Linux device drivers
ROHM Semiconductors, Finland SWDC
Kiviharjunlenkki 1E
90220 OULU
FINLAND

~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~
Simon says - in Latin please.
~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~
Thanks to Simon Glass for the translation =] 
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Matti Vaittinen

The bd70528 watchdog driver is probed by MFD driver. Add MODULE_ALIAS in order to allow udev to load the module when MFD sub-device cell for watchdog is added.

Fixes bbc88a0ec9f37 ("watchdog: bd70528: Initial support for ROHM BD70528 watchdog block")
Quoted 32 lines

---

I'm not really sure if this is a bug-fix or feature but I guess the Fixes tag won't harm, right?

 drivers/watchdog/bd70528_wdt.c | 1 +
 1 file changed, 1 insertion(+)
drivers/watchdog/bd70528_wdt.c +1 -0
index b0152fef4fc7..bc60e036627a 100644
@@ -288,3 +288,4 @@ module_platform_driver(bd70528_wdt);
 MODULE_AUTHOR("Matti Vaittinen <[email protected]>");
 MODULE_DESCRIPTION("BD70528 watchdog driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:bd70528-wdt");
Signature · 14 lines
2.21.0


-- 
Matti Vaittinen, Linux device drivers
ROHM Semiconductors, Finland SWDC
Kiviharjunlenkki 1E
90220 OULU
FINLAND

~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~
Simon says - in Latin please.
~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~
Thanks to Simon Glass for the translation =]