mfd: arizona-i2c: add the missing device table IDs for of

Message ID 20230319124153.35294-1-git@apitzsch.eu
State New
Headers
Series mfd: arizona-i2c: add the missing device table IDs for of |

Commit Message

André Apitzsch March 19, 2023, 12:41 p.m. UTC
  This patch adds missing MODULE_DEVICE_TABLE definition
which generates correct modalias for automatic loading
of this driver when it is built as a module.

Signed-off-by: André Apitzsch <git@apitzsch.eu>
---
 drivers/mfd/arizona-i2c.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Charles Keepax March 20, 2023, 9:35 a.m. UTC | #1
On Sun, Mar 19, 2023 at 01:41:53PM +0100, André Apitzsch wrote:
> This patch adds missing MODULE_DEVICE_TABLE definition
> which generates correct modalias for automatic loading
> of this driver when it is built as a module.
> 
> Signed-off-by: André Apitzsch <git@apitzsch.eu>
> ---

Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>

Thanks,
Charles
  
Lee Jones March 30, 2023, 11:11 a.m. UTC | #2
On Sun, 19 Mar 2023, André Apitzsch wrote:

> This patch adds missing MODULE_DEVICE_TABLE definition
> which generates correct modalias for automatic loading
> of this driver when it is built as a module.

Next time please wrap at a more suitable point (~80-chars).

I've fixed this for you this time.

> Signed-off-by: André Apitzsch <git@apitzsch.eu>
> ---
>  drivers/mfd/arizona-i2c.c | 1 +
>  1 file changed, 1 insertion(+)

Applied, thanks

--
Lee Jones [李琼斯]
  

Patch

diff --git a/drivers/mfd/arizona-i2c.c b/drivers/mfd/arizona-i2c.c
index b2301586adbc..43e393c8608d 100644
--- a/drivers/mfd/arizona-i2c.c
+++ b/drivers/mfd/arizona-i2c.c
@@ -112,6 +112,7 @@  static const struct of_device_id arizona_i2c_of_match[] = {
 	{ .compatible = "wlf,wm1814", .data = (void *)WM1814 },
 	{},
 };
+MODULE_DEVICE_TABLE(of, arizona_i2c_of_match);
 #endif
 
 static struct i2c_driver arizona_i2c_driver = {