* [PATCH -next] power: reset: gpio-poweroff: add missing MODULE_DEVICE_TABLE
@ 2021-05-08 3:14 Bixuan Cui
2021-06-04 10:58 ` Sebastian Reichel
0 siblings, 1 reply; 2+ messages in thread
From: Bixuan Cui @ 2021-05-08 3:14 UTC (permalink / raw)
To: cuibixuan, Sebastian Reichel; +Cc: linux-pm, kernel-janitors
This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
---
drivers/power/reset/gpio-poweroff.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/power/reset/gpio-poweroff.c b/drivers/power/reset/gpio-poweroff.c
index c5067eb75370..1c5af2fef142 100644
--- a/drivers/power/reset/gpio-poweroff.c
+++ b/drivers/power/reset/gpio-poweroff.c
@@ -90,6 +90,7 @@ static const struct of_device_id of_gpio_poweroff_match[] = {
{ .compatible = "gpio-poweroff", },
{},
};
+MODULE_DEVICE_TABLE(of, of_gpio_poweroff_match);
static struct platform_driver gpio_poweroff_driver = {
.probe = gpio_poweroff_probe,
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] power: reset: gpio-poweroff: add missing MODULE_DEVICE_TABLE
2021-05-08 3:14 [PATCH -next] power: reset: gpio-poweroff: add missing MODULE_DEVICE_TABLE Bixuan Cui
@ 2021-06-04 10:58 ` Sebastian Reichel
0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Reichel @ 2021-06-04 10:58 UTC (permalink / raw)
To: Bixuan Cui; +Cc: linux-pm, kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 993 bytes --]
Hi,
On Sat, May 08, 2021 at 11:14:59AM +0800, Bixuan Cui wrote:
> This patch adds missing MODULE_DEVICE_TABLE definition which generates
> correct modalias for automatic loading of this driver when it is built
> as an external module.
>
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
> ---
Thanks, queued.
-- Sebastian
> drivers/power/reset/gpio-poweroff.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/power/reset/gpio-poweroff.c b/drivers/power/reset/gpio-poweroff.c
> index c5067eb75370..1c5af2fef142 100644
> --- a/drivers/power/reset/gpio-poweroff.c
> +++ b/drivers/power/reset/gpio-poweroff.c
> @@ -90,6 +90,7 @@ static const struct of_device_id of_gpio_poweroff_match[] = {
> { .compatible = "gpio-poweroff", },
> {},
> };
> +MODULE_DEVICE_TABLE(of, of_gpio_poweroff_match);
>
> static struct platform_driver gpio_poweroff_driver = {
> .probe = gpio_poweroff_probe,
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-04 10:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-08 3:14 [PATCH -next] power: reset: gpio-poweroff: add missing MODULE_DEVICE_TABLE Bixuan Cui
2021-06-04 10:58 ` Sebastian Reichel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).