diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-04-23 23:23:50 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-05-04 16:51:52 +0200 |
commit | 4f7e01c9615e6f0b21e00c2a0900b2db2b23b4fc (patch) | |
tree | 38b81953cf6e632651943dd3087b0be2f3aa918d /drivers/gpio | |
parent | 1572819c5fb4c7f8596c973555211b37847fdf5d (diff) |
sunxi: soft-i2c: Fix gpio handling to work with the driver-model
i2c_init_board() gets called before the driver-model (gpio) code is
initialized, so move the setup of the soft-i2c pins out of i2c_init_board()
and into board_init(), at which time the driver-model setup has been done.
Also add proper error checking and properly request the gpios as that is
mandatory with the driver-model.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'drivers/gpio')
0 files changed, 0 insertions, 0 deletions