Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef70728c authored by Stephen Warren's avatar Stephen Warren Committed by Thierry Reding
Browse files

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: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 5482d75a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)
{
+1 −0
Original line number Diff line number Diff line
@@ -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 = {
+1 −0
Original line number Diff line number Diff line
@@ -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 = {
+1 −0
Original line number Diff line number Diff line
@@ -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,
+1 −0
Original line number Diff line number Diff line
@@ -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),
Loading