drm/i915: add noop power well handlers instead of NULL checking them
authorImre Deak <imre.deak@intel.com>
Tue, 4 Mar 2014 17:22:56 +0000 (19:22 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 7 Mar 2014 21:36:50 +0000 (22:36 +0100)
commita45f4466e4e160e6ce5332895710d3d881a6a51c
tree35a3bbe1f482f572062c96215c0c90df7374d841
parentc6cb582e6cf7b2e7ecb9668f53bd4fe6295bee82
drm/i915: add noop power well handlers instead of NULL checking them

Reading code free of special cases wins over the small overhead of
calling a noop handler. Suggested by Jesse.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c