summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915
diff options
context:
space:
mode:
authorChangbin Du <changbin.du@intel.com>2016-12-27 13:25:06 +0800
committerZhenyu Wang <zhenyuw@linux.intel.com>2017-01-09 11:05:56 +0800
commit39762ad437f1149b904e6baeaf28824da34a89c1 (patch)
tree35dfd59a192e23c7a51f132dab39b467cc4aeadb /drivers/gpu/drm/i915
parenta12010534d0984f91bc5bdcf9e27bd55e20d82da (diff)
downloadop-kernel-dev-39762ad437f1149b904e6baeaf28824da34a89c1.zip
op-kernel-dev-39762ad437f1149b904e6baeaf28824da34a89c1.tar.gz
drm/i915/gvt: fix return value in mul_force_wake_write
All mmio handlers should return a negetive value for failure, not 1. Signed-off-by: Changbin Du <changbin.du@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r--drivers/gpu/drm/i915/gvt/handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gvt/handlers.c b/drivers/gpu/drm/i915/gvt/handlers.c
index e06d5f3..8cbaf1c 100644
--- a/drivers/gpu/drm/i915/gvt/handlers.c
+++ b/drivers/gpu/drm/i915/gvt/handlers.c
@@ -220,7 +220,7 @@ static int mul_force_wake_write(struct intel_vgpu *vgpu,
default:
/*should not hit here*/
gvt_err("invalid forcewake offset 0x%x\n", offset);
- return 1;
+ return -EINVAL;
}
} else {
ack_reg_offset = FORCEWAKE_ACK_HSW_REG;
OpenPOWER on IntegriCloud