linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: bcm: dvp: Add MODULE_DEVICE_TABLE()
@ 2020-12-02 10:35 Nicolas Saenz Julienne
  2020-12-02 12:05 ` Maxime Ripard
  2020-12-19 19:48 ` Stephen Boyd
  0 siblings, 2 replies; 3+ messages in thread
From: Nicolas Saenz Julienne @ 2020-12-02 10:35 UTC (permalink / raw)
  To: Nicolas Saenz Julienne, Stephen Boyd, Maxime Ripard, Stefan Wahren
  Cc: Michael Turquette, linux-clk, bcm-kernel-feedback-list,
	linux-rpi-kernel, linux-arm-kernel, linux-kernel

Add MODULE_DEVICE_TABLE() so as to be able to use the driver as a
module. More precisely, for the driver to be loaded automatically at
boot.

Fixes: 1bc95972715a ("clk: bcm: Add BCM2711 DVP driver")
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
---
 drivers/clk/bcm/clk-bcm2711-dvp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/bcm/clk-bcm2711-dvp.c b/drivers/clk/bcm/clk-bcm2711-dvp.c
index 8333e20dc9d2..69e2f85f7029 100644
--- a/drivers/clk/bcm/clk-bcm2711-dvp.c
+++ b/drivers/clk/bcm/clk-bcm2711-dvp.c
@@ -108,6 +108,7 @@ static const struct of_device_id clk_dvp_dt_ids[] = {
 	{ .compatible = "brcm,brcm2711-dvp", },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, clk_dvp_dt_ids);
 
 static struct platform_driver clk_dvp_driver = {
 	.probe	= clk_dvp_probe,
-- 
2.29.2


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

* Re: [PATCH] clk: bcm: dvp: Add MODULE_DEVICE_TABLE()
  2020-12-02 10:35 [PATCH] clk: bcm: dvp: Add MODULE_DEVICE_TABLE() Nicolas Saenz Julienne
@ 2020-12-02 12:05 ` Maxime Ripard
  2020-12-19 19:48 ` Stephen Boyd
  1 sibling, 0 replies; 3+ messages in thread
From: Maxime Ripard @ 2020-12-02 12:05 UTC (permalink / raw)
  To: Nicolas Saenz Julienne
  Cc: Stephen Boyd, Stefan Wahren, Michael Turquette, linux-clk,
	bcm-kernel-feedback-list, linux-rpi-kernel, linux-arm-kernel,
	linux-kernel

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

On Wed, Dec 02, 2020 at 11:35:18AM +0100, Nicolas Saenz Julienne wrote:
> Add MODULE_DEVICE_TABLE() so as to be able to use the driver as a
> module. More precisely, for the driver to be loaded automatically at
> boot.
> 
> Fixes: 1bc95972715a ("clk: bcm: Add BCM2711 DVP driver")
> Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>

Reviewed-by: Maxime Ripard <mripard@kernel.org>

Maxime

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

* Re: [PATCH] clk: bcm: dvp: Add MODULE_DEVICE_TABLE()
  2020-12-02 10:35 [PATCH] clk: bcm: dvp: Add MODULE_DEVICE_TABLE() Nicolas Saenz Julienne
  2020-12-02 12:05 ` Maxime Ripard
@ 2020-12-19 19:48 ` Stephen Boyd
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2020-12-19 19:48 UTC (permalink / raw)
  To: Maxime Ripard, Nicolas Saenz Julienne, Stefan Wahren
  Cc: Michael Turquette, linux-clk, bcm-kernel-feedback-list,
	linux-rpi-kernel, linux-arm-kernel, linux-kernel

Quoting Nicolas Saenz Julienne (2020-12-02 02:35:18)
> Add MODULE_DEVICE_TABLE() so as to be able to use the driver as a
> module. More precisely, for the driver to be loaded automatically at
> boot.
> 
> Fixes: 1bc95972715a ("clk: bcm: Add BCM2711 DVP driver")
> Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
> ---

Applied to clk-next

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

end of thread, other threads:[~2020-12-19 19:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-02 10:35 [PATCH] clk: bcm: dvp: Add MODULE_DEVICE_TABLE() Nicolas Saenz Julienne
2020-12-02 12:05 ` Maxime Ripard
2020-12-19 19:48 ` Stephen Boyd

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).