summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/sor.c
diff options
context:
space:
mode:
authorStephen Warren2014-06-19 00:21:55 +0200
committerThierry Reding2014-08-04 10:07:39 +0200
commitef70728c7a6571a1a7115031e932b811f1740b2e (patch)
tree23143137cf59f0f3df94d9a2d3a5f9ffe656ff3e /drivers/gpu/drm/tegra/sor.c
parentdrm/tegra: dc - Reset controller on driver remove (diff)
downloadkernel-qcow2-linux-ef70728c7a6571a1a7115031e932b811f1740b2e.tar.gz
kernel-qcow2-linux-ef70728c7a6571a1a7115031e932b811f1740b2e.tar.xz
kernel-qcow2-linux-ef70728c7a6571a1a7115031e932b811f1740b2e.zip
drm/tegra: add MODULE_DEVICE_TABLEs
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>
Diffstat (limited to 'drivers/gpu/drm/tegra/sor.c')
-rw-r--r--drivers/gpu/drm/tegra/sor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c
index 6cb861bf1e03..0410e467b828 100644
--- a/drivers/gpu/drm/tegra/sor.c
+++ b/drivers/gpu/drm/tegra/sor.c
@@ -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 = {