if (!ret)
                clk_disable_unprepare(gmin_subdevs[i].pmc_clk);
 
-       if (!IS_ERR(gmin_subdevs[i].gpio0)) {
-               ret = gpiod_direction_output(gmin_subdevs[i].gpio0, 0);
-               if (ret)
-                       dev_err(dev, "gpio0 set output failed: %d\n", ret);
-       } else {
+       if (IS_ERR(gmin_subdevs[i].gpio0))
                gmin_subdevs[i].gpio0 = NULL;
-       }
 
-       if (!IS_ERR(gmin_subdevs[i].gpio1)) {
-               ret = gpiod_direction_output(gmin_subdevs[i].gpio1, 0);
-               if (ret)
-                       dev_err(dev, "gpio1 set output failed: %d\n", ret);
-       } else {
+       if (IS_ERR(gmin_subdevs[i].gpio1))
                gmin_subdevs[i].gpio1 = NULL;
-       }
 
        if (pmic_id == PMIC_REGULATOR) {
                gmin_subdevs[i].v1p8_reg = regulator_get(dev, "V1P8SX");