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)
commit810d601f07ce2481ff776e049c0733ded2abbcc1
tree976c48ddc58dd542569d892b09af8f4ae11531c0
parentf6161aa153581da4a3867a2d1a7caf4be19b6ec9
extcon: max8997: Check the pointer of platform data to protect null pointer error

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>
drivers/extcon/extcon-max8997.c