Linux-Clk Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH 0/2] bd718xx: Fix probing when built as a module
@ 2019-09-30 20:25 Guido Günther
  2019-09-30 20:26 ` [PATCH 1/2] regulator: bd718x7: Add MODULE_ALIAS() Guido Günther
  2019-09-30 20:26 ` [PATCH 2/2] clk: " Guido Günther
  0 siblings, 2 replies; 3+ messages in thread
From: Guido Günther @ 2019-09-30 20:25 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd, Liam Girdwood, Mark Brown,
	linux-clk, linux-kernel


Add MODULE_ALIAS("platform:<drivername>") so the drivers of the subdevices get
loaded with the mfd driver. Without that the regulator and clk drivers would
never be loaded when built as a module.


Guido Günther (2):
  regulator: bd718x7: Add MODULE_ALIAS()
  clk: bd718x7: Add MODULE_ALIAS()

 drivers/clk/clk-bd718x7.c             | 1 +
 drivers/regulator/bd718x7-regulator.c | 1 +
 2 files changed, 2 insertions(+)

-- 
2.23.0.rc1


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

* [PATCH 1/2] regulator: bd718x7: Add MODULE_ALIAS()
  2019-09-30 20:25 [PATCH 0/2] bd718xx: Fix probing when built as a module Guido Günther
@ 2019-09-30 20:26 ` Guido Günther
  2019-09-30 20:26 ` [PATCH 2/2] clk: " Guido Günther
  1 sibling, 0 replies; 3+ messages in thread
From: Guido Günther @ 2019-09-30 20:26 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd, Liam Girdwood, Mark Brown,
	linux-clk, linux-kernel

This fixes device probing when built as a module

Signed-off-by: Guido Günther <agx@sigxcpu.org>
---
 drivers/regulator/bd718x7-regulator.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/regulator/bd718x7-regulator.c b/drivers/regulator/bd718x7-regulator.c
index bdab46a5c461..13a43eee2e46 100644
--- a/drivers/regulator/bd718x7-regulator.c
+++ b/drivers/regulator/bd718x7-regulator.c
@@ -1293,3 +1293,4 @@ module_platform_driver(bd718xx_regulator);
 MODULE_AUTHOR("Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>");
 MODULE_DESCRIPTION("BD71837/BD71847 voltage regulator driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:bd718xx-pmic");
-- 
2.23.0.rc1


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

* [PATCH 2/2] clk: bd718x7: Add MODULE_ALIAS()
  2019-09-30 20:25 [PATCH 0/2] bd718xx: Fix probing when built as a module Guido Günther
  2019-09-30 20:26 ` [PATCH 1/2] regulator: bd718x7: Add MODULE_ALIAS() Guido Günther
@ 2019-09-30 20:26 ` " Guido Günther
  1 sibling, 0 replies; 3+ messages in thread
From: Guido Günther @ 2019-09-30 20:26 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd, Liam Girdwood, Mark Brown,
	linux-clk, linux-kernel

This fixes device probing when built as a module.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
---
 drivers/clk/clk-bd718x7.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/clk-bd718x7.c b/drivers/clk/clk-bd718x7.c
index ae6e5baee330..00926c587390 100644
--- a/drivers/clk/clk-bd718x7.c
+++ b/drivers/clk/clk-bd718x7.c
@@ -133,3 +133,4 @@ module_platform_driver(bd71837_clk);
 MODULE_AUTHOR("Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>");
 MODULE_DESCRIPTION("BD71837/BD71847/BD70528 chip clk driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:bd718xx-clk");
-- 
2.23.0.rc1


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

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-30 20:25 [PATCH 0/2] bd718xx: Fix probing when built as a module Guido Günther
2019-09-30 20:26 ` [PATCH 1/2] regulator: bd718x7: Add MODULE_ALIAS() Guido Günther
2019-09-30 20:26 ` [PATCH 2/2] clk: " Guido Günther

Linux-Clk Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-clk/0 linux-clk/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-clk linux-clk/ https://lore.kernel.org/linux-clk \
		linux-clk@vger.kernel.org linux-clk@archiver.kernel.org
	public-inbox-index linux-clk

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-clk


AGPL code for this site: git clone https://public-inbox.org/ public-inbox