]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/tegra: add MODULE_DEVICE_TABLEs
authorStephen Warren <swarren@nvidia.com>
Wed, 18 Jun 2014 22:21:55 +0000 (16:21 -0600)
committerThierry Reding <treding@nvidia.com>
Mon, 4 Aug 2014 08:07:39 +0000 (10:07 +0200)
When tegra-drm.ko is built as a module, these MODULE_DEVICE_TABLEs allow
the module to be auto-loaded since the module will match the devices
instantiated from device tree.

(Notes for stable: in 3.14+, just git rm any conflicting file, since they
are added in later kernels. For 3.13 and below, manual merging will be
needed)

Cc: <stable@vger.kernel.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c
drivers/gpu/drm/tegra/dpaux.c
drivers/gpu/drm/tegra/dsi.c
drivers/gpu/drm/tegra/gr2d.c
drivers/gpu/drm/tegra/gr3d.c
drivers/gpu/drm/tegra/hdmi.c
drivers/gpu/drm/tegra/sor.c

index b2065d9e13d4202c062bc77603cfbbab2ecd24b6..6553fd238685e459deb0676114bfd9cac04f7e50 100644 (file)
@@ -1394,6 +1394,7 @@ static const struct of_device_id tegra_dc_of_match[] = {
                /* sentinel */
        }
 };
+MODULE_DEVICE_TABLE(of, tegra_dc_of_match);
 
 static int tegra_dc_parse_dt(struct tegra_dc *dc)
 {
index 3f132e356e9cd393394bdce5a3594765be08d596..708f783ead47682f8ef76e17ebc435a1850f9eb6 100644 (file)
@@ -382,6 +382,7 @@ static const struct of_device_id tegra_dpaux_of_match[] = {
        { .compatible = "nvidia,tegra124-dpaux", },
        { },
 };
+MODULE_DEVICE_TABLE(of, tegra_dpaux_of_match);
 
 struct platform_driver tegra_dpaux_driver = {
        .driver = {
index eadfeaf9e1eb8fb198f45dfb7ec52dd29bb3b979..f7874458926a7f289d8df1a3e46ead9f066e1a82 100644 (file)
@@ -983,6 +983,7 @@ static const struct of_device_id tegra_dsi_of_match[] = {
        { .compatible = "nvidia,tegra114-dsi", },
        { },
 };
+MODULE_DEVICE_TABLE(of, tegra_dsi_of_match);
 
 struct platform_driver tegra_dsi_driver = {
        .driver = {
index 7c53941f2a9ea347d6ff44eb1583efc629b611d7..02cd3e37a6ec3cf7d1e1d84f65387bb1c12853cc 100644 (file)
@@ -121,6 +121,7 @@ static const struct of_device_id gr2d_match[] = {
        { .compatible = "nvidia,tegra20-gr2d" },
        { },
 };
+MODULE_DEVICE_TABLE(of, gr2d_match);
 
 static const u32 gr2d_addr_regs[] = {
        GR2D_UA_BASE_ADDR,
index 30f5ba9bd6d05c508eac1306c7b1468e6c515587..2bea2b2d204e809fd4dcc0b0bbaf7427317b8198 100644 (file)
@@ -130,6 +130,7 @@ static const struct of_device_id tegra_gr3d_match[] = {
        { .compatible = "nvidia,tegra20-gr3d" },
        { }
 };
+MODULE_DEVICE_TABLE(of, tegra_gr3d_match);
 
 static const u32 gr3d_addr_regs[] = {
        GR3D_IDX_ATTRIBUTE( 0),
index ba067bb767e376ea4aaa5a7f5fe5917d1608b7c2..ffe26547328df8a352f8dca6e832912084cc7388 100644 (file)
@@ -1450,6 +1450,7 @@ static const struct of_device_id tegra_hdmi_of_match[] = {
        { .compatible = "nvidia,tegra20-hdmi", .data = &tegra20_hdmi_config },
        { },
 };
+MODULE_DEVICE_TABLE(of, tegra_hdmi_of_match);
 
 static int tegra_hdmi_probe(struct platform_device *pdev)
 {
index 6cb861bf1e03028bf756e3dd95615087ceec99e0..0410e467b82836b94e1bccd459b101ec78a5ce48 100644 (file)
@@ -1465,6 +1465,7 @@ static const struct of_device_id tegra_sor_of_match[] = {
        { .compatible = "nvidia,tegra124-sor", },
        { },
 };
+MODULE_DEVICE_TABLE(of, tegra_sor_of_match);
 
 struct platform_driver tegra_sor_driver = {
        .driver = {