sunxi: display: Fix gpio handling to work with the driver-model
authorHans de Goede <[email protected]>
Wed, 22 Apr 2015 15:45:59 +0000 (17:45 +0200)
committerHans de Goede <[email protected]>
Mon, 4 May 2015 14:51:52 +0000 (16:51 +0200)
commit1572819c5fb4c7f8596c973555211b37847fdf5d
tree706d6a0146a716a4714cf7d4908c168d67b3f965
parenta725426929515b9fdef1cb725159a29cf67361a7
sunxi: display: Fix gpio handling to work with the driver-model

The driver-model gpio functions may return another value then -1 as error,
make the sunxi display code properly handle this.

Signed-off-by: Hans de Goede <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Acked-by: Ian Campbell <[email protected]>
drivers/video/sunxi_display.c