summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/gvt/handlers.c
diff options
context:
space:
mode:
authorChangbin Du <changbin.du@intel.com>2016-12-27 08:25:06 +0300
committerZhenyu Wang <zhenyuw@linux.intel.com>2017-01-09 06:05:56 +0300
commit39762ad437f1149b904e6baeaf28824da34a89c1 (patch)
tree35dfd59a192e23c7a51f132dab39b467cc4aeadb /drivers/gpu/drm/i915/gvt/handlers.c
parenta12010534d0984f91bc5bdcf9e27bd55e20d82da (diff)
downloadlinux-39762ad437f1149b904e6baeaf28824da34a89c1.tar.xz
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/gvt/handlers.c')
-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 e06d5f37bb92..8cbaf1c83720 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;