Skip to content

Commit 619c986

Browse files
Liao Chendamien-lemoal
authored andcommitted
ata: pata_ixp4xx: Enable module autoloading
Add MODULE_DEVICE_TABLE(), so modules can 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> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
1 parent 4b4e1a9 commit 619c986

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/ata/pata_ixp4xx_cf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ static const struct of_device_id ixp4xx_pata_of_match[] = {
290290
{ .compatible = "intel,ixp4xx-compact-flash", },
291291
{ /* sentinel */ }
292292
};
293+
MODULE_DEVICE_TABLE(of, ixp4xx_pata_of_match);
293294

294295
static struct platform_driver ixp4xx_pata_platform_driver = {
295296
.driver = {

0 commit comments

Comments
 (0)