Skip to content
Snippets Groups Projects
Commit 4f7e01c9 authored by Hans de Goede's avatar Hans de Goede
Browse files

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: default avatarHans de Goede <hdegoede@redhat.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Acked-by: default avatarIan Campbell <ijc@hellion.org.uk>
parent 1572819c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment