sunxi: display: Fix gpio handling to work with the driver-model
authorHans de Goede <hdegoede@redhat.com>
Wed, 22 Apr 2015 15:45:59 +0000 (17:45 +0200)
committerHans de Goede <hdegoede@redhat.com>
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 <hdegoede@redhat.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
drivers/video/sunxi_display.c