]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
usb: typec: fix module autoloading
authorLiao Chen <liaochen4@huawei.com>
Thu, 22 Aug 2024 13:01:12 +0000 (13:01 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Aug 2024 11:45:56 +0000 (13:45 +0200)
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>
Link: https://lore.kernel.org/r/20240822130113.164644-4-liaochen4@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/anx7411.c

index 1a35c6d6f36bdbfe8113f487120f0a32f45278a2..06d88e9caeaf176ccbbc9e2714b21673a0e67794 100644 (file)
@@ -1577,6 +1577,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 = {