DNI: Regulator: Debug

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index afe9447..515f689 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -1725,6 +1725,8 @@ static struct regulator_dev *regulator_dev_lookup(struct device *dev,
 			if (r)
 				return r;
 
+			dev_err(dev, "1728 regulator_dev_lookup: We have a node, but there is no device");
+
 			/*
 			 * We have a node, but there is no device.
 			 * assume it has not registered yet.
@@ -1864,8 +1866,11 @@ struct regulator *_regulator_get(struct device *dev, const char *id,
 		 * If regulator_dev_lookup() fails with error other
 		 * than -ENODEV our job here is done, we simply return it.
 		 */
-		if (ret != -ENODEV)
+		if (ret != -ENODEV) {
+			dev_warn(dev,
+				 "__regulator_get returning %d\n", ret);
 			return ERR_PTR(ret);
+		}
 
 		if (!have_full_constraints()) {
 			dev_warn(dev,
diff --git a/drivers/regulator/gpio-regulator.c b/drivers/regulator/gpio-regulator.c
index 110ee6f..819e2f4 100644
--- a/drivers/regulator/gpio-regulator.c
+++ b/drivers/regulator/gpio-regulator.c
@@ -240,10 +240,15 @@ static int gpio_regulator_probe(struct platform_device *pdev)
 	if (np) {
 		config = of_get_gpio_regulator_config(dev, np,
 						      &drvdata->desc);
-		if (IS_ERR(config))
+
+		if (IS_ERR(config)) {
+			dev_err(dev, "OF_GET_GPIO_REGULATOR_CONFIG %d\n", PTR_ERR(config));
 			return PTR_ERR(config);
+		}
 	}
 
+	dev_err(dev, "Probing GPIO Regulator\n");
+
 	drvdata->desc.name = devm_kstrdup(dev, config->supply_name, GFP_KERNEL);
 	if (drvdata->desc.name == NULL) {
 		dev_err(dev, "Failed to allocate supply name\n");
@@ -254,6 +259,7 @@ static int gpio_regulator_probe(struct platform_device *pdev)
 				       GFP_KERNEL);
 	if (!drvdata->gpiods)
 		return -ENOMEM;
+
 	for (i = 0; i < config->ngpios; i++) {
 		drvdata->gpiods[i] = devm_gpiod_get_index(dev,
 							  NULL,