Commit 82d73874 authored by Thierry Reding's avatar Thierry Reding

drm/tegra: vic: Export module device table

Export the module device table to ensure the VIC compatible strings are
listed in the module's aliases table. This in turn causes the driver to
be automatically loaded on boot if VIC is the only enabled subdevice of
the logical host1x DRM device.
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent be0b23f2
...@@ -386,13 +386,14 @@ static const struct vic_config vic_t194_config = { ...@@ -386,13 +386,14 @@ static const struct vic_config vic_t194_config = {
.supports_sid = true, .supports_sid = true,
}; };
static const struct of_device_id vic_match[] = { static const struct of_device_id tegra_vic_of_match[] = {
{ .compatible = "nvidia,tegra124-vic", .data = &vic_t124_config }, { .compatible = "nvidia,tegra124-vic", .data = &vic_t124_config },
{ .compatible = "nvidia,tegra210-vic", .data = &vic_t210_config }, { .compatible = "nvidia,tegra210-vic", .data = &vic_t210_config },
{ .compatible = "nvidia,tegra186-vic", .data = &vic_t186_config }, { .compatible = "nvidia,tegra186-vic", .data = &vic_t186_config },
{ .compatible = "nvidia,tegra194-vic", .data = &vic_t194_config }, { .compatible = "nvidia,tegra194-vic", .data = &vic_t194_config },
{ }, { },
}; };
MODULE_DEVICE_TABLE(of, tegra_vic_of_match);
static int vic_probe(struct platform_device *pdev) static int vic_probe(struct platform_device *pdev)
{ {
...@@ -516,7 +517,7 @@ static const struct dev_pm_ops vic_pm_ops = { ...@@ -516,7 +517,7 @@ static const struct dev_pm_ops vic_pm_ops = {
struct platform_driver tegra_vic_driver = { struct platform_driver tegra_vic_driver = {
.driver = { .driver = {
.name = "tegra-vic", .name = "tegra-vic",
.of_match_table = vic_match, .of_match_table = tegra_vic_of_match,
.pm = &vic_pm_ops .pm = &vic_pm_ops
}, },
.probe = vic_probe, .probe = vic_probe,
......
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