drm/ati_pcigart: Fix error code in drm_ati_pcigart_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 17 Dec 2018 07:03:44 +0000 (10:03 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 17 Dec 2018 09:47:17 +0000 (10:47 +0100)
commitc27889ca3bb8bdc936bd0477125f0f6ff4c42df3
treece86098416b69560485434f2ba6b604ee1179784
parent705c8160ce88825d2491aa55fa9da4fa79204c10
drm/ati_pcigart: Fix error code in drm_ati_pcigart_init()

The drm_ati_pcigart_init() function was originally suppose to return one
on success and zero on failure, but these days it returns a mix of
zero, one and -ENOMEM on failure.

This patch cleans it up and modifies the caller so now the function
returns zero on success and negative error codes on failure.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20181217070344.GC12159@kadam
drivers/gpu/drm/ati_pcigart.c
drivers/gpu/drm/r128/r128_cce.c