Commit 0f3e1eaa authored by Liao Chen's avatar Liao Chen Committed by Damien Le Moal

ata: sata_gemini: 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: default avatarLiao Chen <liaochen4@huawei.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarDamien Le Moal <dlemoal@kernel.org>
parent 619c9862
...@@ -417,6 +417,7 @@ static const struct of_device_id gemini_sata_of_match[] = { ...@@ -417,6 +417,7 @@ static const struct of_device_id gemini_sata_of_match[] = {
{ .compatible = "cortina,gemini-sata-bridge", }, { .compatible = "cortina,gemini-sata-bridge", },
{ /* sentinel */ } { /* sentinel */ }
}; };
MODULE_DEVICE_TABLE(of, gemini_sata_of_match);
static struct platform_driver gemini_sata_driver = { static struct platform_driver gemini_sata_driver = {
.driver = { .driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment