diff mbox series

[-next,3/4] usb: typec: fix module autoloading

Message ID 20240822130113.164644-4-liaochen4@huawei.com
State New
Headers show
Series usb: fix module autoloading | expand

Commit Message

Liao Chen Aug. 22, 2024, 1:01 p.m. UTC
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.

Signed-off-by: Liao Chen <liaochen4@huawei.com>
---
 drivers/usb/typec/anx7411.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Heikki Krogerus Aug. 26, 2024, 8:54 a.m. UTC | #1
On Thu, Aug 22, 2024 at 01:01:12PM +0000, Liao Chen wrote:
> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
> based on the alias from of_device_id table.
> 
> Signed-off-by: Liao Chen <liaochen4@huawei.com>

Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>

> ---
>  drivers/usb/typec/anx7411.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/usb/typec/anx7411.c b/drivers/usb/typec/anx7411.c
> index 5a5bf3532ad7..33ff301b918f 100644
> --- a/drivers/usb/typec/anx7411.c
> +++ b/drivers/usb/typec/anx7411.c
> @@ -1576,6 +1576,7 @@ static const struct of_device_id anx_match_table[] = {
>  	{.compatible = "analogix,anx7411",},
>  	{},
>  };
> +MODULE_DEVICE_TABLE(of, anx_match_table);
>  
>  static struct i2c_driver anx7411_driver = {
>  	.driver = {
> -- 
> 2.34.1
diff mbox series

Patch

diff --git a/drivers/usb/typec/anx7411.c b/drivers/usb/typec/anx7411.c
index 5a5bf3532ad7..33ff301b918f 100644
--- a/drivers/usb/typec/anx7411.c
+++ b/drivers/usb/typec/anx7411.c
@@ -1576,6 +1576,7 @@  static const struct of_device_id anx_match_table[] = {
 	{.compatible = "analogix,anx7411",},
 	{},
 };
+MODULE_DEVICE_TABLE(of, anx_match_table);
 
 static struct i2c_driver anx7411_driver = {
 	.driver = {