drm/i915/gvt: Remove duplicated MMIO entries
authorJian Jun Chen <jian.jun.chen@intel.com>
Wed, 19 Jul 2017 04:18:39 +0000 (12:18 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 10 Aug 2017 02:26:09 +0000 (10:26 +0800)
commit36ed7e97e260e9b7abf30121b3f58f2c83bf35c1
tree3d8b51e62b4bcca1b22ebed0334043774fb0cb97
parent73821a53d081de30368262198793e891fbd7318d
drm/i915/gvt: Remove duplicated MMIO entries

Remove duplicated MMIO entries in the tracked MMIO list. -EEXIST
is returned if duplicated MMIO entries are found when new MMIO
entry is added.

v2:
- Use WARN(1, ...) for more verbose message. (Zhenyu)

Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com>
Cc: Zhi Wang <zhi.a.wang@intel.com>
Cc: Changbin Du <changbin.du@intel.com>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Reviewed-by: Yulei Zhang <yulei.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/handlers.c