diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2013-06-01 19:17:58 +0530 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2013-06-11 17:32:04 -0700 |
commit | 82eb739d26a460673de7075c2814549d5c93f4a2 (patch) | |
tree | 1d0b82fb0482e9042fc576cbff9085c8cfa6a971 /drivers | |
parent | 02be51ade99e6792682b387fd18fbad43bee9ebf (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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/power/power_supply_extcon.c | 1 |
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; |