power: max77843_charger: fix bugs for extcon register 11/83611/3
authorDongwoo Lee <dwoo08.lee@samsung.com>
Fri, 12 Aug 2016 03:56:16 +0000 (12:56 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 16 Aug 2016 02:12:27 +0000 (11:12 +0900)
commit2d4c5a6ba253b9c93c3509254b6cd4326671a135
treed6785b3364a256b089655f27937f92937aff4f21
parenta31f0b0597525cfb124ddf84cd589f3e5de68cad
power: max77843_charger: fix bugs for extcon register

A member "edev" of struct "max77843_charger" is uninitalized, but
is accessed in conditional statement. The code seems to have a bug.
This patch fixes this bug.

Change-Id: I103554ab8a5ddcfcae623cd5dc914aeaed6a48cb
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
drivers/power/max77843_charger.c