diff options
author | Andi Shyti <andi.shyti@intel.com> | 2018-10-02 12:20:47 +0300 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-10-02 13:37:53 +0100 |
commit | 2ddcc982bdc51ad31bf5aa86ea02b3166cadd32e (patch) | |
tree | db4e36e41619210b900baa53b24ec2136f8f7772 /drivers/gpu/drm/i915/intel_psr.c | |
parent | c0a6aa7ec2c365a44ec8eb6e9b23f1f51ad386ed (diff) |
drm/i915: fix wrong error number report
During driver load it's considered that the i915_driver_create()
function fails only in case of insufficient memory. Indeed, in
case of failure of i915_driver_create(), the load function
returns indiscriminately -ENOMEM ignoring the real cause of
failure.
In i915_driver_create() get the consistent error value from
drm_dev_init() and embed it in the pointer return value.
Signed-off-by: Andi Shyti <andi.shyti@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20181002092047.14705-1-andi.shyti@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_psr.c')
0 files changed, 0 insertions, 0 deletions