drm/i915/chv: Fix error path in GPU freq helpers
authorImre Deak <imre.deak@intel.com>
Fri, 29 Jan 2016 12:52:27 +0000 (14:52 +0200)
committerImre Deak <imre.deak@intel.com>
Tue, 2 Feb 2016 16:28:25 +0000 (18:28 +0200)
commit9c06f6744d663205395f88d98aef87edcd3ce5bd
tree4b767adc94e44394e3172dc55a29c4b624177cac
parentd81a67cc1bfdc3efed8590ee4e07a40b198908ba
drm/i915/chv: Fix error path in GPU freq helpers

Atm we wouldn't catch these errors or on the error path we would end up
with a division-by-zero, fix this up.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: David Weinehall <david.weinehall@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1454071949-24677-2-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/intel_pm.c