extcon: max8997: Check the pointer of platform data to protect null pointer error
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 18 Feb 2013 01:15:03 +0000 (10:15 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 13 Mar 2013 08:28:15 +0000 (17:28 +0900)
This patch check the pointer of platform data to protect
kernel panic when platform data is not used and code clean.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>

No differences found