diff mbox series

[-next] pinctrl: equilibrium: Add missing MODULE_DEVICE_TABLE

Message ID 20210508031502.53637-1-cuibixuan@huawei.com
State New
Headers show
Series [-next] pinctrl: equilibrium: Add missing MODULE_DEVICE_TABLE | expand

Commit Message

Bixuan Cui May 8, 2021, 3:15 a.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 an external module.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
---
 drivers/pinctrl/pinctrl-equilibrium.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Linus Walleij May 19, 2021, 11 p.m. UTC | #1
On Sat, May 8, 2021 at 3:51 AM Bixuan Cui <cuibixuan@huawei.com> 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.

>

> Reported-by: Hulk Robot <hulkci@huawei.com>

> Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>


Patch applied.

Yours,
Linus Walleij
Bixuan Cui May 20, 2021, 1:43 a.m. UTC | #2
On 2021/5/20 7:00, Linus Walleij wrote:
> Patch applied.

Thanks

Bixuan Cui
> 

> Yours,

> Linus Walleij
diff mbox series

Patch

diff --git a/drivers/pinctrl/pinctrl-equilibrium.c b/drivers/pinctrl/pinctrl-equilibrium.c
index a194d8089b6f..38cc20fa9d5a 100644
--- a/drivers/pinctrl/pinctrl-equilibrium.c
+++ b/drivers/pinctrl/pinctrl-equilibrium.c
@@ -939,6 +939,7 @@  static const struct of_device_id eqbr_pinctrl_dt_match[] = {
 	{ .compatible = "intel,lgm-io" },
 	{}
 };
+MODULE_DEVICE_TABLE(of, eqbr_pinctrl_dt_match);
 
 static struct platform_driver eqbr_pinctrl_driver = {
 	.probe	= eqbr_pinctrl_probe,