[patch] drm/gma500: missing error codes in psb_driver_load()

2015-04-17 Thread Dan Carpenter
We should return an error code here. In the current code they can only fail if there is an allocation error so -ENOMEM is appropriate. Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c index 92e7e57..4eff0d6 100644 --- a/drivers/gpu/dr

[patch] drm/gma500: missing error codes in psb_driver_load()

2015-04-17 Thread Patrik Jakobsson
On Fri, Apr 17, 2015 at 2:24 PM, Dan Carpenter wrote: > We should return an error code here. In the current code they can only > fail if there is an allocation error so -ENOMEM is appropriate. > > Signed-off-by: Dan Carpenter Reviewed-by: Patrik Jakobsson > diff --git a/drivers/gpu/drm/gma50