Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1013055pxj; Fri, 4 Jun 2021 04:05:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxHTCvCbR/gARE1mMh2rVRfC5yIowD/2FkyQ3j5prztyNIfj6iqtQEhZVlOjDBzrrD32z0 X-Received: by 2002:a50:ff0a:: with SMTP id a10mr4071714edu.273.1622804717929; Fri, 04 Jun 2021 04:05:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622804717; cv=none; d=google.com; s=arc-20160816; b=XbD+xd72e0EGhpj+c4Jy1pdP5+j1QxKCrET0hDcgrQQxMu5hh4HQLVS3tMwtG+uRbP K9HIU4gakXUnKdy8JV5UWUF8RunRVQaGs/DRw1eGGLy/W7vDXsquSWax+Q5guSmhJFM2 ucSYQDlCGWubQpopJOHUBqRo+3a1cUdjvM/etEpNkbyBG5U6LXpFjW1MhDcntCAU/D0o zhqjaEvax22bA8egxtDCkA4eT7VwxKXaddCiSw42eEoPpNAxwRSiToFtAyVZQQKhyrCV NJpkrz/eNOPYWLikQdwXkm1e392Z9Vlw5r00fcFR/iDX0yUhzegSYKwqYttrxZGKH49Y QayQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=LsGS9mJ1tN91cUw8aB2lW1AL2rW90bEUbAmVOmCSgAE=; b=ryn58ifDO+x6UMSmonJ9z1v6PUTGVahUeQBVKnEM0nG/Lqu3mo4+qnGZIGd2m2c3JE IbfznxXzVsrivZfh72Dnw1huTf+G8YBqcnIT67UvWojRfoH2XH86ywv6Cm+hwhG50ktV 2zlmuLilQjb19tez63ovNvKFkve+vOmIIPeXTMv6BvBWY97c8lxJc+UO59/osS0OJxv3 s+yRKaPWn0cwrQ7QoiOjn07oC9g6SiO46LnXW0roZeiiPv9dTqV7q8w2APXHL/ZYNtE+ w5VDmM/MbXqu16PpHI8FVlRe35IleSCA/WjQaGcfYINcmWq8P3yFk8h0wz+dJhQlRQ7n mObw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v8si167678edq.352.2021.06.04.04.04.54; Fri, 04 Jun 2021 04:05:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230188AbhFDLEK (ORCPT + 99 others); Fri, 4 Jun 2021 07:04:10 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:33904 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230172AbhFDLEK (ORCPT ); Fri, 4 Jun 2021 07:04:10 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 9289B1F437F6 Received: by earth.universe (Postfix, from userid 1000) id 5E02B3C0C95; Fri, 4 Jun 2021 13:02:21 +0200 (CEST) Date: Fri, 4 Jun 2021 13:02:21 +0200 From: Sebastian Reichel To: Zou Wei Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] power: reset/supply: add missing MODULE_DEVICE_TABLE Message-ID: <20210604110221.ykclr6yxlw3nflug@earth.universe> References: <1620896701-53542-1-git-send-email-zou_wei@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kzwyopa6voscrg7y" Content-Disposition: inline In-Reply-To: <1620896701-53542-1-git-send-email-zou_wei@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --kzwyopa6voscrg7y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > Reported-by: Hulk Robot > Signed-off-by: Zou Wei > --- 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(+) >=20 > diff --git a/drivers/power/reset/regulator-poweroff.c b/drivers/power/res= et/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[] =3D { > { .compatible =3D "regulator-poweroff", }, > {}, > }; > +MODULE_DEVICE_TABLE(of, of_regulator_poweroff_match); > =20 > static struct platform_driver regulator_poweroff_driver =3D { > .probe =3D regulator_poweroff_probe, > diff --git a/drivers/power/supply/ab8500_btemp.c b/drivers/power/supply/a= b8500_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= [] =3D { > { .compatible =3D "stericsson,ab8500-btemp", }, > { }, > }; > +MODULE_DEVICE_TABLE(of, ab8500_btemp_match); > =20 > static struct platform_driver ab8500_btemp_driver =3D { > .probe =3D 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_mat= ch[] =3D { > { .compatible =3D "stericsson,ab8500-charger", }, > { }, > }; > +MODULE_DEVICE_TABLE(of, ab8500_charger_match); > =20 > static struct platform_driver ab8500_charger_driver =3D { > .probe =3D ab8500_charger_probe, > diff --git a/drivers/power/supply/ab8500_fg.c b/drivers/power/supply/ab85= 00_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[] = =3D { > { .compatible =3D "stericsson,ab8500-fg", }, > { }, > }; > +MODULE_DEVICE_TABLE(of, ab8500_fg_match); > =20 > static struct platform_driver ab8500_fg_driver =3D { > .probe =3D ab8500_fg_probe, > diff --git a/drivers/power/supply/charger-manager.c b/drivers/power/suppl= y/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_ma= tch[] =3D { > }, > {}, > }; > +MODULE_DEVICE_TABLE(of, charger_manager_match); > =20 > static struct charger_desc *of_cm_parse_desc(struct device *dev) > { > --=20 > 2.6.2 >=20 --kzwyopa6voscrg7y Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAmC6CD0ACgkQ2O7X88g7 +pod4xAAkIpz2bUPTtLApmiYEziQwZf5Z5meSAdR521hxMC9A5Kdx6qk5FcCRZbK Y3561Mye0/TwQSFMI360DX5RWDbeGEo1hjqYPZiQpdQjXWnTC2/HEWFGPknZBkY7 N9EB2E/H1TxMvYoEGQYNLCX+MsmQvOzLiQucmXwdUAssOltjZqXANouXzflBfoh9 lW+QmHLVv7nn0HnlzgDCnsytjouqc9cP0My5ekhhMQNrxwzsi0WnW1NC5RDZf1u9 ukRWvXlqHkHCb3q3GLj+tH0BtT33ohHJPQeEGVmj6XD7ibXgU4w1ECiw7pyct6F0 NjFjzry+RNA6As9PuZOcrvBXEnNRYqQfx6fkDhazyvylsiibDT7qtyGlDIT5E9vc tJAbJEEBROMpOxjl77UX688eDYCBIWc6OWdUidvZ91Ndz2B3vJofEECtvw7QIGyx eQEW9tdfoSTwYOyB4JWI8OC4IdYWp/xYik8YVr5cDHGSR29SVN1DnwX3apqjOE0K ogVbqqwUoFxsti3WgXZNQ2fPS2M+/VDId0s5NZjrWUErdcRAX60S/a9MwMdlKxVY XW7LKgP8SB+zx8n//mK0sUJhRJvx9h2U7JPto7zPT5okFdH9yyEVcaOADU8LGyux pdQ+/AV32b2gekmovFezhPtLZawPe7o7QHK6TBdY0hapvqJRY2o= =qOaK -----END PGP SIGNATURE----- --kzwyopa6voscrg7y--