]> git.sur5r.net Git - u-boot/blobdiff - drivers/power/axp221.c
rockchip: clock: Add a function to find a clock by ID
[u-boot] / drivers / power / axp221.c
index d621f2a9f96cc661612bdc568963a117af444a8f..65802e4a713f9eec76dfc41d18a0db048160544b 100644 (file)
@@ -269,14 +269,9 @@ int axp_set_eldo(int eldo_num, unsigned int mvolt)
 
 int axp_init(void)
 {
-       /* This cannot be 0 because it is used in SPL before BSS is ready */
-       static int needs_init = 1;
        u8 axp_chip_id;
        int ret;
 
-       if (!needs_init)
-               return 0;
-
        ret = pmic_bus_init();
        if (ret)
                return ret;
@@ -288,7 +283,6 @@ int axp_init(void)
        if (!(axp_chip_id == 0x6 || axp_chip_id == 0x7 || axp_chip_id == 0x17))
                return -ENODEV;
 
-       needs_init = 0;
        return 0;
 }