diff mbox series

input: misc: rk805-pwrkey: Fix module autoloading

Message ID 20220612225437.3628788-1-pbrobinson@gmail.com
State Accepted
Commit 99077ad668ddd9b4823cc8ce3f3c7a3fc56f6fd9
Headers show
Series input: misc: rk805-pwrkey: Fix module autoloading | expand

Commit Message

Peter Robinson June 12, 2022, 10:54 p.m. UTC
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")
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
---
 drivers/input/misc/rk805-pwrkey.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Javier Martinez Canillas June 13, 2022, 5:03 p.m. UTC | #1
Hello Peter,

On 6/13/22 00:54, Peter Robinson wrote:
> 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")
> Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
> ---

Patch looks good to me.

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Peter Robinson Aug. 22, 2022, 7:18 a.m. UTC | #2
Hi,

Any chance someone could review and pick this up please?

Peter

On Sun, Jun 12, 2022 at 11:54 PM Peter Robinson <pbrobinson@gmail.com> wrote:
>
> 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")
> Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
> ---
>  drivers/input/misc/rk805-pwrkey.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/input/misc/rk805-pwrkey.c b/drivers/input/misc/rk805-pwrkey.c
> index 3fb64dbda1a2..76873aa005b4 100644
> --- a/drivers/input/misc/rk805-pwrkey.c
> +++ b/drivers/input/misc/rk805-pwrkey.c
> @@ -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 <chenjh@rock-chips.com>");
>  MODULE_DESCRIPTION("RK805 PMIC Power Key driver");
>  MODULE_LICENSE("GPL");
> --
> 2.36.1
>
Dmitry Torokhov Aug. 23, 2022, 4:27 a.m. UTC | #3
On Sun, Jun 12, 2022 at 11:54:37PM +0100, Peter Robinson wrote:
> 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")
> Signed-off-by: Peter Robinson <pbrobinson@gmail.com>

Applied, thank you.
diff mbox series

Patch

diff --git a/drivers/input/misc/rk805-pwrkey.c b/drivers/input/misc/rk805-pwrkey.c
index 3fb64dbda1a2..76873aa005b4 100644
--- a/drivers/input/misc/rk805-pwrkey.c
+++ b/drivers/input/misc/rk805-pwrkey.c
@@ -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 <chenjh@rock-chips.com>");
 MODULE_DESCRIPTION("RK805 PMIC Power Key driver");
 MODULE_LICENSE("GPL");