extcon: max77693: Fix bug of wrong pointer when platform data is not used
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 18 Feb 2013 01:03:32 +0000 (10:03 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 13 Mar 2013 08:32:35 +0000 (17:32 +0900)
commit190d7cfc8632c10bfbfe756f882b6d9cfddfdf6a
tree50c2dd3b8735464bc03e1676493011ae33b1db67
parent810d601f07ce2481ff776e049c0733ded2abbcc1
extcon: max77693: Fix bug of wrong pointer when platform data is not used

This patch fix wrong pointer of platform data. If each machine set
platform data for h/w path or delay time of workqueue, this driver
happen kernel panic related to null pointer.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
drivers/extcon/extcon-max77693.c