diff options
author | Philipp Zabel <philipp.zabel@gmail.com> | 2009-04-28 15:34:14 +0400 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2009-04-28 21:58:08 +0400 |
commit | 030853b7abdd6effb9cb44f29e60d1d7a9592210 (patch) | |
tree | 4f6778f40e56286430039b6904599a46f3212795 /drivers/regulator/bq24022.c | |
parent | aa61d558f0f9f8b303b9cab1e51e9886896ba1a3 (diff) | |
download | linux-030853b7abdd6effb9cb44f29e60d1d7a9592210.tar.xz |
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/bq24022.c')
-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 7ecb820ceebc..d08cd9b66c6d 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); } |