summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-01-26 16:59:12 +0100
committerHans de Goede <hdegoede@redhat.com>2015-02-02 13:55:14 +0100
commit37d46dd3c4f3617b88a5797aab3600d3a4f32bd5 (patch)
tree79aab56d1f8695dd58eddd3f2945192e52371c1f /drivers
parentd35488c7359ac5b6e20d9fe1895360aa7f3122f2 (diff)
downloadu-boot-imx-37d46dd3c4f3617b88a5797aab3600d3a4f32bd5.zip
u-boot-imx-37d46dd3c4f3617b88a5797aab3600d3a4f32bd5.tar.gz
u-boot-imx-37d46dd3c4f3617b88a5797aab3600d3a4f32bd5.tar.bz2
sunxi: rsb: Move rsb_set_device_mode() call to rsb_init()
It turns out that the device_mode_data is rsb specific, rather then slave specific, so integrate the rsb_set_device_mode() call into rsb_init(). Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/power/axp221.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/power/axp221.c b/drivers/power/axp221.c
index 58bbd45..3e07f23 100644
--- a/drivers/power/axp221.c
+++ b/drivers/power/axp221.c
@@ -29,9 +29,7 @@ static int pmic_bus_init(void)
#else
int ret;
- rsb_init();
-
- ret = rsb_set_device_mode(AXP223_DEVICE_MODE_DATA);
+ ret = rsb_init();
if (ret)
return ret;