summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2013-06-01 19:17:58 +0530
committerRiham Haidar <rhaidar@nvidia.com>2013-06-11 17:32:04 -0700
commit82eb739d26a460673de7075c2814549d5c93f4a2 (patch)
tree1d0b82fb0482e9042fc576cbff9085c8cfa6a971
parent02be51ade99e6792682b387fd18fbad43bee9ebf (diff)
power: power-supply-extcon: update cable state during init
Update cable state during initialisation to have the sync with the cable state if cable state event is missed which is happened before initialisation of driver. bug 1304013 Change-Id: I87eb4c41ab589094639379eff8ed2837893ca892 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/234771 Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com> Tested-by: Hyong Bin Kim <hyongbink@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
-rw-r--r--drivers/power/power_supply_extcon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/power_supply_extcon.c b/drivers/power/power_supply_extcon.c
index a64679f7fb81..c26788188160 100644
--- a/drivers/power/power_supply_extcon.c
+++ b/drivers/power/power_supply_extcon.c
@@ -241,6 +241,7 @@ static __devinit int psy_extcon_probe(struct platform_device *pdev)
if (!psy_extcon->edev)
goto econ_err;
+ power_supply_extcon_attach_cable(psy_extcon, psy_extcon->edev);
dev_info(&pdev->dev, "%s() get success\n", __func__);
return 0;