drm: ARM HDLCD - fix an error code
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 2 Apr 2016 05:42:24 +0000 (08:42 +0300)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Mon, 4 Apr 2016 09:11:33 +0000 (10:11 +0100)
commit69c2565a3cca3d79572941d62165af7805d72762
tree500263f2efda582c9c55922fcfd661e0add769b6
parent61a6dcd77af74e925bb301475fb6e43d8fe72da8
drm: ARM HDLCD - fix an error code

We accidentally return PTR_ERR(NULL) which is success instead of a
negative error code.

Fixes: 879e40bea6f2 ('drm: ARM HDLCD - get rid of devm_clk_put()')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
drivers/gpu/drm/arm/hdlcd_drv.c