drm/i915: fix pm init ordering
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 6 Dec 2013 09:17:53 +0000 (10:17 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 6 Dec 2013 12:08:15 +0000 (13:08 +0100)
commitf742a55231b950ed71ac8cc8beec0944ddda312c
treedb8f292d7772c1a04fdcb1e7526587de5ec48a70
parent0d1430a3f4b7cfd8779b78740a4182321f3ca7f3
drm/i915: fix pm init ordering

Shovel a bit more of the the code into the setup function, and call
it earlier. Otherwise lockdep is unhappy since we cancel the delayed
resume work before it's initialized.

While at it also shovel the pc8 setup code into the same functions.
I wanted to also ditch the header declaration of the hws pc8 functions,
but for unfathomable reasons that stuff is in intel_display.c instead
of intel_pm.c.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71980
Tested-by: Guo Jinxian <jinxianx.guo@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_pm.c