summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/dc/hdmi.c
diff options
context:
space:
mode:
authorJon Mayo <jmayo@nvidia.com>2012-03-12 18:42:28 -0700
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-03-19 08:23:16 -0700
commit7ac06f1c4755a05ceec5736ce6c6d4e6cb76f007 (patch)
treef689f58c7b6b1826a1fd04566e56717c55a89398 /drivers/video/tegra/dc/hdmi.c
parent426e2e24840dc42aff8b172c8cb4e34f67a468e3 (diff)
video: tegra: clean-up warnings and code style
fix some build warnings and bad code style. Change-Id: I907296ce0e5437dfd6acd0b2b3c119b6dbde7b1c Signed-off-by: Jon Mayo <jmayo@nvidia.com> Reviewed-on: http://git-master/r/89634 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/dc/hdmi.c')
-rw-r--r--drivers/video/tegra/dc/hdmi.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/video/tegra/dc/hdmi.c b/drivers/video/tegra/dc/hdmi.c
index 0644678e7584..4cb5053d35a3 100644
--- a/drivers/video/tegra/dc/hdmi.c
+++ b/drivers/video/tegra/dc/hdmi.c
@@ -1071,7 +1071,9 @@ static int tegra_dc_hdmi_init(struct tegra_dc *dc)
ret = switch_dev_register(&hdmi->hpd_switch);
if (!ret)
- device_create_file(hdmi->hpd_switch.dev, &dev_attr_underscan);
+ ret = device_create_file(hdmi->hpd_switch.dev,
+ &dev_attr_underscan);
+ BUG_ON(ret != 0);
#endif
dc->out->depth = 24;
@@ -1080,13 +1082,12 @@ static int tegra_dc_hdmi_init(struct tegra_dc *dc)
dc_hdmi = hdmi;
/* boards can select default content protection policy */
- if (dc->out->flags & TEGRA_DC_OUT_NVHDCP_POLICY_ON_DEMAND) {
+ if (dc->out->flags & TEGRA_DC_OUT_NVHDCP_POLICY_ON_DEMAND)
tegra_nvhdcp_set_policy(hdmi->nvhdcp,
TEGRA_NVHDCP_POLICY_ON_DEMAND);
- } else {
+ else
tegra_nvhdcp_set_policy(hdmi->nvhdcp,
TEGRA_NVHDCP_POLICY_ALWAYS_ON);
- }
tegra_dc_hdmi_debug_create(hdmi);