drm/i915: In intel_dp_init, replace read of DPCD with intel_dp_get_dpcd
authorKeith Packard <keithp@keithp.com>
Tue, 26 Jul 2011 03:01:56 +0000 (20:01 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 28 Jul 2011 22:47:21 +0000 (15:47 -0700)
commit59f3e272d788305e16098f0b18309919c9216d67
tree735a07b8353f53c4bdcace04d5dc7fc37b3dd774
parent26d61aad7a46115628341e9eb95433f30efef21a
drm/i915: In intel_dp_init, replace read of DPCD with intel_dp_get_dpcd

Eliminates an open-coded read and also gains the retry behaviour of
intel_dp_get_dpcd, which seems like a good idea.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Adam Jackson <ajax@redhat.com>
drivers/gpu/drm/i915/intel_dp.c