}
        }
 
-       if (tps->chip_id == LP8764) {
-               nr_buck = ARRAY_SIZE(buck_regs);
-               nr_ldo = 0;
-               nr_types = REGS_INT_NB;
-       } else if (tps->chip_id == TPS65224) {
+       if (tps->chip_id == TPS65224) {
                nr_buck = ARRAY_SIZE(tps65224_buck_regs);
                nr_ldo = ARRAY_SIZE(tps65224_ldo_regs);
-               nr_types = REGS_INT_NB;
+               nr_types = TPS65224_REGS_INT_NB;
        } else {
                nr_buck = ARRAY_SIZE(buck_regs);
-               nr_ldo = ARRAY_SIZE(tps6594_ldo_regs);
-               nr_types = TPS65224_REGS_INT_NB;
+               nr_ldo = (tps->chip_id == LP8764) ? 0 : ARRAY_SIZE(tps6594_ldo_regs);
+               nr_types = REGS_INT_NB;
        }
 
        reg_irq_nb = nr_types * (nr_buck + nr_ldo);