diff options
author | Philipp Zabel <philipp.zabel@gmail.com> | 2009-04-28 13:34:14 +0200 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2009-04-28 18:58:08 +0100 |
commit | 030853b7abdd6effb9cb44f29e60d1d7a9592210 (patch) | |
tree | 4f6778f40e56286430039b6904599a46f3212795 /drivers/regulator | |
parent | aa61d558f0f9f8b303b9cab1e51e9886896ba1a3 (diff) |
regulator/bq24022: fix bug in is_enabled function
This seems to be fallout from last October's regulator core rework.
It got noticed only because of recent regulator framework changes.
Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/bq24022.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/regulator/bq24022.c b/drivers/regulator/bq24022.c index 7ecb820ceeb..d08cd9b66c6 100644 --- a/drivers/regulator/bq24022.c +++ b/drivers/regulator/bq24022.c @@ -61,8 +61,7 @@ static int bq24022_disable(struct regulator_dev *rdev) static int bq24022_is_enabled(struct regulator_dev *rdev) { - struct platform_device *pdev = rdev_get_drvdata(rdev); - struct bq24022_mach_info *pdata = pdev->dev.platform_data; + struct bq24022_mach_info *pdata = rdev_get_drvdata(rdev); return !gpio_get_value(pdata->gpio_nce); } |