drm/i915/drv: return -EIO instead of -1
authorJani Nikula <jani.nikula@intel.com>
Thu, 30 Sep 2021 11:24:35 +0000 (14:24 +0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 1 Oct 2021 08:44:33 +0000 (11:44 +0300)
commit5e9a0200dad83f8620af04c733cd7f93bb0efb8c
tree4cee4fc487a55ae6b9f3c3e5083f54da88a27fed
parent0743019d540d18e7a5db220bf4c4b95650aa8c9e
drm/i915/drv: return -EIO instead of -1

Avoid using the incidental -EPERM. Return the -EIO directly from
i915_get_bridge_dev() instead of converting return values later.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1ee72c31963d8be98490cd78f7c1182ba4f54c13.1633000838.git.jani.nikula@intel.com
drivers/gpu/drm/i915/i915_drv.c