diff mbox

wl1271: power down/up sequence

Message ID AANLkTinMBx=5J4ZAaO7qkmJAxp4xbjoJxq+m+Bjz+K1e@mail.gmail.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Ohad Ben Cohen Nov. 30, 2010, 9:59 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c
index 2fe9d99..6476137 100644
--- a/drivers/regulator/fixed.c
+++ b/drivers/regulator/fixed.c
@@ -49,6 +49,7 @@  static int fixed_voltage_enable(struct regulator_dev *dev)
        struct fixed_voltage_data *data = rdev_get_drvdata(dev);

        if (gpio_is_valid(data->gpio)) {
+               pr_info("%s %d\n", __func__, data->gpio);
                gpio_set_value_cansleep(data->gpio, data->enable_high);
                data->is_enabled = true;
        }
@@ -61,6 +62,7 @@  static int fixed_voltage_disable(struct regulator_dev *dev)
        struct fixed_voltage_data *data = rdev_get_drvdata(dev);

        if (gpio_is_valid(data->gpio)) {
+               pr_info("%s %d\n", __func__, data->gpio);
                gpio_set_value_cansleep(data->gpio, !data->enable_high);
                data->is_enabled = false;
        }