diff mbox series

[-next,1/3] ata: pata_ftide010: Enable module autoloading

Message ID 20240829131907.541466-2-liaochen4@huawei.com
State New
Headers show
Series ata: Enable module autoloading | expand

Commit Message

liaochen (A) Aug. 29, 2024, 1:19 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/ata/pata_ftide010.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Sergey Shtylyov Aug. 29, 2024, 4:56 p.m. UTC | #1
On 8/29/24 4:19 PM, 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>

Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>

[...]

MBR, Sergey
Damien Le Moal Aug. 30, 2024, 4:51 a.m. UTC | #2
On 8/29/24 10:19 PM, Liao Chen wrote:
> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based

s/could/can

Same comment for the other 2 patches. Other than that, looks good.
Feel free to add Sergey's review tag when sending v2. Thanks.

> on the alias from of_device_id table.
> 
> Signed-off-by: Liao Chen <liaochen4@huawei.com>
> ---
>  drivers/ata/pata_ftide010.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/ata/pata_ftide010.c b/drivers/ata/pata_ftide010.c
> index 4d6ef90ccc77..73a9a5109238 100644
> --- a/drivers/ata/pata_ftide010.c
> +++ b/drivers/ata/pata_ftide010.c
> @@ -549,6 +549,7 @@ static const struct of_device_id pata_ftide010_of_match[] = {
>  	{ .compatible = "faraday,ftide010", },
>  	{ /* sentinel */ }
>  };
> +MODULE_DEVICE_TABLE(of, pata_ftide010_of_match);
>  
>  static struct platform_driver pata_ftide010_driver = {
>  	.driver = {
diff mbox series

Patch

diff --git a/drivers/ata/pata_ftide010.c b/drivers/ata/pata_ftide010.c
index 4d6ef90ccc77..73a9a5109238 100644
--- a/drivers/ata/pata_ftide010.c
+++ b/drivers/ata/pata_ftide010.c
@@ -549,6 +549,7 @@  static const struct of_device_id pata_ftide010_of_match[] = {
 	{ .compatible = "faraday,ftide010", },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, pata_ftide010_of_match);
 
 static struct platform_driver pata_ftide010_driver = {
 	.driver = {