diff options
author | Eric Anholt <eric@anholt.net> | 2009-01-02 16:33:00 -0500 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2009-01-06 20:49:47 -0500 |
commit | 7d57382e65994ab7d01741373bd1c420370aed9f (patch) | |
tree | b0c3c5f9657a360db60c45b4c4091b7c027a637f /drivers/gpu/drm/i915/intel_sdvo.c | |
parent | 3f8bc370ac679a5fe5c098f30d3cf8e80f62a9f8 (diff) |
drm/i915: Add support for integrated HDMI on G4X hardware.
This is ported directly from the userland 2D driver code. The HDMI audio bits
aren't hooked up yet.
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_sdvo.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_sdvo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c index fbbaa4f414a0..407215469102 100644 --- a/drivers/gpu/drm/i915/intel_sdvo.c +++ b/drivers/gpu/drm/i915/intel_sdvo.c | |||
@@ -978,7 +978,7 @@ static const struct drm_encoder_funcs intel_sdvo_enc_funcs = { | |||
978 | }; | 978 | }; |
979 | 979 | ||
980 | 980 | ||
981 | void intel_sdvo_init(struct drm_device *dev, int output_device) | 981 | bool intel_sdvo_init(struct drm_device *dev, int output_device) |
982 | { | 982 | { |
983 | struct drm_connector *connector; | 983 | struct drm_connector *connector; |
984 | struct intel_output *intel_output; | 984 | struct intel_output *intel_output; |
@@ -991,7 +991,7 @@ void intel_sdvo_init(struct drm_device *dev, int output_device) | |||
991 | 991 | ||
992 | intel_output = kcalloc(sizeof(struct intel_output)+sizeof(struct intel_sdvo_priv), 1, GFP_KERNEL); | 992 | intel_output = kcalloc(sizeof(struct intel_output)+sizeof(struct intel_sdvo_priv), 1, GFP_KERNEL); |
993 | if (!intel_output) { | 993 | if (!intel_output) { |
994 | return; | 994 | return false; |
995 | } | 995 | } |
996 | 996 | ||
997 | connector = &intel_output->base; | 997 | connector = &intel_output->base; |
@@ -1116,7 +1116,7 @@ void intel_sdvo_init(struct drm_device *dev, int output_device) | |||
1116 | 1116 | ||
1117 | intel_output->ddc_bus = i2cbus; | 1117 | intel_output->ddc_bus = i2cbus; |
1118 | 1118 | ||
1119 | return; | 1119 | return true; |
1120 | 1120 | ||
1121 | err_i2c: | 1121 | err_i2c: |
1122 | intel_i2c_destroy(intel_output->i2c_bus); | 1122 | intel_i2c_destroy(intel_output->i2c_bus); |
@@ -1124,5 +1124,5 @@ err_connector: | |||
1124 | drm_connector_cleanup(connector); | 1124 | drm_connector_cleanup(connector); |
1125 | kfree(intel_output); | 1125 | kfree(intel_output); |
1126 | 1126 | ||
1127 | return; | 1127 | return false; |
1128 | } | 1128 | } |