]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Error out if we are trying to use VGA with SPLL already in use
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 7 Mar 2013 15:30:25 +0000 (15:30 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 23 Mar 2013 12:26:56 +0000 (13:26 +0100)
commit08c155a8fb2deec4f875d98a2d2cbd0383eb4fac
treecf7ec9d659b0168534035f3dc55569a85d081ffc
parent56380cb5a4919ed2f307612175f4484149d6218d
drm/i915: Error out if we are trying to use VGA with SPLL already in use

Our static analysis tool noticed that 'reg' could be used uninitialized if
we are trying to get a PLL to drive VGA and SPLL is already in use
(plls->spll_refcoung != 0).

In the (error) case above, let's return false to the caller and emit an
error.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ddi.c