public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] power: supply: bd70528: Add MODULE_ALIAS to allow module auto loading
@ 2019-10-23 12:35 Matti Vaittinen
  2019-10-27 21:36 ` Sebastian Reichel
  0 siblings, 1 reply; 2+ messages in thread
From: Matti Vaittinen @ 2019-10-23 12:35 UTC (permalink / raw)
  To: matti.vaittinen, mazziesaccount; +Cc: Sebastian Reichel, linux-pm, linux-kernel

The bd70528 charger driver is probed by MFD driver. Add MODULE_ALIAS
in order to allow udev to load the module when MFD sub-device cell for
charger is added.

Fixes: f8c7f7ddd8ef0 ("power: supply: Initial support for ROHM BD70528 PMIC charger block")
Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
---

Not sure if this should be bugfix or new feature. I don't think Fixes
tag is a problem though.

 drivers/power/supply/bd70528-charger.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/power/supply/bd70528-charger.c b/drivers/power/supply/bd70528-charger.c
index 1bb32b7226d7..b8e1ec106627 100644
--- a/drivers/power/supply/bd70528-charger.c
+++ b/drivers/power/supply/bd70528-charger.c
@@ -741,3 +741,4 @@ module_platform_driver(bd70528_power);
 MODULE_AUTHOR("Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>");
 MODULE_DESCRIPTION("BD70528 power-supply driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:bd70528-power");
-- 
2.21.0


-- 
Matti Vaittinen, Linux device drivers
ROHM Semiconductors, Finland SWDC
Kiviharjunlenkki 1E
90220 OULU
FINLAND

~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~
Simon says - in Latin please.
~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~
Thanks to Simon Glass for the translation =] 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] power: supply: bd70528: Add MODULE_ALIAS to allow module auto loading
  2019-10-23 12:35 [PATCH] power: supply: bd70528: Add MODULE_ALIAS to allow module auto loading Matti Vaittinen
@ 2019-10-27 21:36 ` Sebastian Reichel
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Reichel @ 2019-10-27 21:36 UTC (permalink / raw)
  To: Matti Vaittinen; +Cc: mazziesaccount, linux-pm, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1532 bytes --]

Hi,

On Wed, Oct 23, 2019 at 03:35:24PM +0300, Matti Vaittinen wrote:
> The bd70528 charger driver is probed by MFD driver. Add MODULE_ALIAS
> in order to allow udev to load the module when MFD sub-device cell for
> charger is added.
> 
> Fixes: f8c7f7ddd8ef0 ("power: supply: Initial support for ROHM BD70528 PMIC charger block")
> Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
> ---

Thanks, queued.

-- Sebastian

> 
> Not sure if this should be bugfix or new feature. I don't think Fixes
> tag is a problem though.
> 
>  drivers/power/supply/bd70528-charger.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/power/supply/bd70528-charger.c b/drivers/power/supply/bd70528-charger.c
> index 1bb32b7226d7..b8e1ec106627 100644
> --- a/drivers/power/supply/bd70528-charger.c
> +++ b/drivers/power/supply/bd70528-charger.c
> @@ -741,3 +741,4 @@ module_platform_driver(bd70528_power);
>  MODULE_AUTHOR("Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>");
>  MODULE_DESCRIPTION("BD70528 power-supply driver");
>  MODULE_LICENSE("GPL");
> +MODULE_ALIAS("platform:bd70528-power");
> -- 
> 2.21.0
> 
> 
> -- 
> Matti Vaittinen, Linux device drivers
> ROHM Semiconductors, Finland SWDC
> Kiviharjunlenkki 1E
> 90220 OULU
> FINLAND
> 
> ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~
> Simon says - in Latin please.
> ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~
> Thanks to Simon Glass for the translation =] 

[-- 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:[~2019-10-27 21:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-23 12:35 [PATCH] power: supply: bd70528: Add MODULE_ALIAS to allow module auto loading Matti Vaittinen
2019-10-27 21:36 ` Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox