Skip to contentSkip to conversation

input: misc: rk805-pwrkey: Fix module autoloading

PATCH Applied Peter Robinson 3 participants 4 messages Jun 12, 2022 – Aug 23, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 input: misc: rk805-pwrkey: Fix module autoloading

Add the module alias so the rk805-pwrkey driver will autoload when built as a module.

Fixes 5a35b85c2d92 ("Input: add power key driver for Rockchip RK805 PMIC")
---
 drivers/input/misc/rk805-pwrkey.c | 1 +
 1 file changed, 1 insertion(+)
drivers/input/misc/rk805-pwrkey.c +1 -0
index 3fb64dbda1a2..76873aa005b4 100644
@@ -98,6 +98,7 @@ static struct platform_driver rk805_pwrkey_driver = {
 };
 module_platform_driver(rk805_pwrkey_driver);
 
+MODULE_ALIAS("platform:rk805-pwrkey");
 MODULE_AUTHOR("Joseph Chen <[email protected]>");
 MODULE_DESCRIPTION("RK805 PMIC Power Key driver");
 MODULE_LICENSE("GPL");
Signature · 1 line
2.36.1
Reviewed-by on v1 1/1
#1 lore raw

Hello Peter,

Quoted 6 lines · Peter Robinson

Add the module alias so the rk805-pwrkey driver will autoload when built as a module.

Fixes 5a35b85c2d92 ("Input: add power key driver for Rockchip RK805 PMIC")

---

Patch looks good to me.

Signature · 5 lines
Best regards,

Javier Martinez Canillas
Linux Engineering
Red Hat
#2 lore raw
In reply to Peter Robinson

Hi,

Any chance someone could review and pick this up please?

Peter

Quoted 25 lines · Peter Robinson

Add the module alias so the rk805-pwrkey driver will autoload when built as a module.

Fixes 5a35b85c2d92 ("Input: add power key driver for Rockchip RK805 PMIC")
---
 drivers/input/misc/rk805-pwrkey.c | 1 +
 1 file changed, 1 insertion(+)
drivers/input/misc/rk805-pwrkey.c +1 -1
index 3fb64dbda1a2..76873aa005b4 100644
@@ -98,6 +98,7 @@ static struct platform_driver rk805_pwrkey_driver = {
 };
 module_platform_driver(rk805_pwrkey_driver);
 
+MODULE_ALIAS("platform:rk805-pwrkey");
 MODULE_AUTHOR("Joseph Chen <[email protected]>");
 MODULE_DESCRIPTION("RK805 PMIC Power Key driver");
 MODULE_LICENSE("GPL");
--

2.36.1