From: Sebastian Reichel <sebastian.reichel@collabora.com>
To: Zou Wei <zou_wei@huawei.com>
Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH -next] power: reset/supply: add missing MODULE_DEVICE_TABLE
Date: Fri, 4 Jun 2021 13:02:21 +0200 [thread overview]
Message-ID: <20210604110221.ykclr6yxlw3nflug@earth.universe> (raw)
In-Reply-To: <1620896701-53542-1-git-send-email-zou_wei@huawei.com>
[-- Attachment #1: Type: text/plain, Size: 3371 bytes --]
Hi,
On Thu, May 13, 2021 at 05:05:01PM +0800, Zou Wei 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: Zou Wei <zou_wei@huawei.com>
> ---
Does not apply anymore. Also please split this into three patches,
one for regulator-poweroff, one for ab8500 and one for
charger-manager.
Thanks,
-- Sebastian
> drivers/power/reset/regulator-poweroff.c | 1 +
> drivers/power/supply/ab8500_btemp.c | 1 +
> drivers/power/supply/ab8500_charger.c | 1 +
> drivers/power/supply/ab8500_fg.c | 1 +
> drivers/power/supply/charger-manager.c | 1 +
> 5 files changed, 5 insertions(+)
>
> diff --git a/drivers/power/reset/regulator-poweroff.c b/drivers/power/reset/regulator-poweroff.c
> index f697088..2070120 100644
> --- a/drivers/power/reset/regulator-poweroff.c
> +++ b/drivers/power/reset/regulator-poweroff.c
> @@ -64,6 +64,7 @@ static const struct of_device_id of_regulator_poweroff_match[] = {
> { .compatible = "regulator-poweroff", },
> {},
> };
> +MODULE_DEVICE_TABLE(of, of_regulator_poweroff_match);
>
> static struct platform_driver regulator_poweroff_driver = {
> .probe = regulator_poweroff_probe,
> diff --git a/drivers/power/supply/ab8500_btemp.c b/drivers/power/supply/ab8500_btemp.c
> index fdfcd59..db1adc1 100644
> --- a/drivers/power/supply/ab8500_btemp.c
> +++ b/drivers/power/supply/ab8500_btemp.c
> @@ -1106,6 +1106,7 @@ static const struct of_device_id ab8500_btemp_match[] = {
> { .compatible = "stericsson,ab8500-btemp", },
> { },
> };
> +MODULE_DEVICE_TABLE(of, ab8500_btemp_match);
>
> static struct platform_driver ab8500_btemp_driver = {
> .probe = ab8500_btemp_probe,
> diff --git a/drivers/power/supply/ab8500_charger.c b/drivers/power/supply/ab8500_charger.c
> index a9be10e..94da73e 100644
> --- a/drivers/power/supply/ab8500_charger.c
> +++ b/drivers/power/supply/ab8500_charger.c
> @@ -3644,6 +3644,7 @@ static const struct of_device_id ab8500_charger_match[] = {
> { .compatible = "stericsson,ab8500-charger", },
> { },
> };
> +MODULE_DEVICE_TABLE(of, ab8500_charger_match);
>
> static struct platform_driver ab8500_charger_driver = {
> .probe = ab8500_charger_probe,
> diff --git a/drivers/power/supply/ab8500_fg.c b/drivers/power/supply/ab8500_fg.c
> index 0c7c01a..5a86afd 100644
> --- a/drivers/power/supply/ab8500_fg.c
> +++ b/drivers/power/supply/ab8500_fg.c
> @@ -3212,6 +3212,7 @@ static const struct of_device_id ab8500_fg_match[] = {
> { .compatible = "stericsson,ab8500-fg", },
> { },
> };
> +MODULE_DEVICE_TABLE(of, ab8500_fg_match);
>
> static struct platform_driver ab8500_fg_driver = {
> .probe = ab8500_fg_probe,
> diff --git a/drivers/power/supply/charger-manager.c b/drivers/power/supply/charger-manager.c
> index 45da870..d67edb7 100644
> --- a/drivers/power/supply/charger-manager.c
> +++ b/drivers/power/supply/charger-manager.c
> @@ -1279,6 +1279,7 @@ static const struct of_device_id charger_manager_match[] = {
> },
> {},
> };
> +MODULE_DEVICE_TABLE(of, charger_manager_match);
>
> static struct charger_desc *of_cm_parse_desc(struct device *dev)
> {
> --
> 2.6.2
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2021-06-04 11:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-13 9:05 [PATCH -next] power: reset/supply: add missing MODULE_DEVICE_TABLE Zou Wei
2021-06-04 11:02 ` Sebastian Reichel [this message]
2021-06-05 0:48 ` Samuel Zou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210604110221.ykclr6yxlw3nflug@earth.universe \
--to=sebastian.reichel@collabora.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=zou_wei@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).