aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/tegra/hdmi.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c
index 5b9d83b71943..a4e9c769fc7a 100644
--- a/drivers/gpu/drm/tegra/hdmi.c
+++ b/drivers/gpu/drm/tegra/hdmi.c
@@ -11,6 +11,7 @@
11#include <linux/debugfs.h> 11#include <linux/debugfs.h>
12#include <linux/gpio.h> 12#include <linux/gpio.h>
13#include <linux/hdmi.h> 13#include <linux/hdmi.h>
14#include <linux/of_device.h>
14#include <linux/pm_runtime.h> 15#include <linux/pm_runtime.h>
15#include <linux/regulator/consumer.h> 16#include <linux/regulator/consumer.h>
16#include <linux/reset.h> 17#include <linux/reset.h>
@@ -1663,20 +1664,15 @@ static irqreturn_t tegra_hdmi_irq(int irq, void *data)
1663 1664
1664static int tegra_hdmi_probe(struct platform_device *pdev) 1665static int tegra_hdmi_probe(struct platform_device *pdev)
1665{ 1666{
1666 const struct of_device_id *match;
1667 struct tegra_hdmi *hdmi; 1667 struct tegra_hdmi *hdmi;
1668 struct resource *regs; 1668 struct resource *regs;
1669 int err; 1669 int err;
1670 1670
1671 match = of_match_node(tegra_hdmi_of_match, pdev->dev.of_node);
1672 if (!match)
1673 return -ENODEV;
1674
1675 hdmi = devm_kzalloc(&pdev->dev, sizeof(*hdmi), GFP_KERNEL); 1671 hdmi = devm_kzalloc(&pdev->dev, sizeof(*hdmi), GFP_KERNEL);
1676 if (!hdmi) 1672 if (!hdmi)
1677 return -ENOMEM; 1673 return -ENOMEM;
1678 1674
1679 hdmi->config = match->data; 1675 hdmi->config = of_device_get_match_data(&pdev->dev);
1680 hdmi->dev = &pdev->dev; 1676 hdmi->dev = &pdev->dev;
1681 1677
1682 hdmi->audio_source = AUTO; 1678 hdmi->audio_source = AUTO;