dev_info(kbdev->dev,
"Continuing without Mali regulator control\n");
/* Allow probe to continue without regulator */
+ } else {
+ err = regulator_enable(kbdev->regulator);
+ if (err < 0) {
+ dev_err(kbdev->dev, "Failed to enable Mali regulator\n");
+ regulator_put(kbdev->regulator);
+ return err;
+ }
}
#endif /* LINUX_VERSION_CODE >= 3, 12, 0 */
#ifdef CONFIG_REGULATOR
if (NULL != kbdev->regulator) {
+ regulator_disable(kbdev->regulator);
regulator_put(kbdev->regulator);
kbdev->regulator = NULL;
}
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 12, 0)) && defined(CONFIG_OF) \
&& defined(CONFIG_REGULATOR)
if (kbdev->regulator) {
+ regulator_disable(kbdev->regulator);
regulator_put(kbdev->regulator);
kbdev->regulator = NULL;
}