Skip to content

Commit 99077ad

Browse files
nullr0utedtor
authored andcommitted
Input: rk805-pwrkey - fix module autoloading
Add the module alias so the rk805-pwrkey driver will autoload when built as a module. Fixes: 5a35b85 ("Input: add power key driver for Rockchip RK805 PMIC") Signed-off-by: Peter Robinson <pbrobinson@gmail.com> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://lore.kernel.org/r/20220612225437.3628788-1-pbrobinson@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 425fe47 commit 99077ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/input/misc/rk805-pwrkey.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ static struct platform_driver rk805_pwrkey_driver = {
9898
};
9999
module_platform_driver(rk805_pwrkey_driver);
100100

101+
MODULE_ALIAS("platform:rk805-pwrkey");
101102
MODULE_AUTHOR("Joseph Chen <chenjh@rock-chips.com>");
102103
MODULE_DESCRIPTION("RK805 PMIC Power Key driver");
103104
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)