aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/hdmi.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2018-12-10 11:34:54 -0500
committerThierry Reding <treding@nvidia.com>2019-01-16 07:09:32 -0500
commitf25d0a68beb868147571e395de52ced0c55f6cd4 (patch)
treed1f60e7ff96a89fc3f73fda27172a761ae76ac7b /drivers/gpu/drm/tegra/hdmi.c
parentbfeffd155283772bbe78c6a05dec7c0128ee500c (diff)
drm/tegra: Refactor CEC support
Most of the CEC support code already lives in the "output" library code. Move registration and unregistration to the library code as well to make use of the same code with HDMI on Tegra210 and later via the SOR. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/hdmi.c')
-rw-r--r--drivers/gpu/drm/tegra/hdmi.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c
index 0082468f703c..d19973945614 100644
--- a/drivers/gpu/drm/tegra/hdmi.c
+++ b/drivers/gpu/drm/tegra/hdmi.c
@@ -22,8 +22,6 @@
22 22
23#include <sound/hda_verbs.h> 23#include <sound/hda_verbs.h>
24 24
25#include <media/cec-notifier.h>
26
27#include "hdmi.h" 25#include "hdmi.h"
28#include "drm.h" 26#include "drm.h"
29#include "dc.h" 27#include "dc.h"
@@ -1709,10 +1707,6 @@ static int tegra_hdmi_probe(struct platform_device *pdev)
1709 return PTR_ERR(hdmi->vdd); 1707 return PTR_ERR(hdmi->vdd);
1710 } 1708 }
1711 1709
1712 hdmi->output.notifier = cec_notifier_get(&pdev->dev);
1713 if (hdmi->output.notifier == NULL)
1714 return -ENOMEM;
1715
1716 hdmi->output.dev = &pdev->dev; 1710 hdmi->output.dev = &pdev->dev;
1717 1711
1718 err = tegra_output_probe(&hdmi->output); 1712 err = tegra_output_probe(&hdmi->output);
@@ -1771,9 +1765,6 @@ static int tegra_hdmi_remove(struct platform_device *pdev)
1771 1765
1772 tegra_output_remove(&hdmi->output); 1766 tegra_output_remove(&hdmi->output);
1773 1767
1774 if (hdmi->output.notifier)
1775 cec_notifier_put(hdmi->output.notifier);
1776
1777 return 0; 1768 return 0;
1778} 1769}
1779 1770