aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/ab8500_btemp.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2012-11-29 10:08:41 -0500
committerLee Jones <lee.jones@linaro.org>2012-12-11 03:43:54 -0500
commit23a04f9f40f2b32ee593b768483105b1c776814d (patch)
tree7c069255c0d34f30f2e3132dd5ce4a614de5ca29 /drivers/power/ab8500_btemp.c
parentb0284de05e07d56ff7de154d0c9263788755f5eb (diff)
ab8500_bm: Always send platform specific battery information via pdata
Currently the AB8500 battery management subsystem receives platform specific information via two different means depending on how the platform is booted. If DT is not enabled, a reference to a *_bm_data data structure containing each platform specific attribute is passed though platform_data. However, if DT is enabled, then platform_data is empty and the reference is gained though a DT specific probe function. There are two issues here 1) the same reference is being collected each time and 2) the DT way doesn't allow any provisions to select different platform specific attributes, which kind of defeats the object. Cc: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/power/ab8500_btemp.c')
-rw-r--r--drivers/power/ab8500_btemp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/ab8500_btemp.c b/drivers/power/ab8500_btemp.c
index 33ed0fccbd0e..c0f7dcceae45 100644
--- a/drivers/power/ab8500_btemp.c
+++ b/drivers/power/ab8500_btemp.c
@@ -988,7 +988,7 @@ static int __devinit ab8500_btemp_probe(struct platform_device *pdev)
988 di->bm = pdev->mfd_cell->platform_data; 988 di->bm = pdev->mfd_cell->platform_data;
989 if (!di->bm) { 989 if (!di->bm) {
990 if (np) { 990 if (np) {
991 ret = ab8500_bm_of_probe(&pdev->dev, np, &di->bm); 991 ret = ab8500_bm_of_probe(&pdev->dev, np, di->bm);
992 if (ret) { 992 if (ret) {
993 dev_err(&pdev->dev, 993 dev_err(&pdev->dev,
994 "failed to get battery information\n"); 994 "failed to get battery information\n");