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: NChanwoo Choi <cw00.choi@samsung.com> Signed-off-by: NMyungjoo Ham <myungjoo.ham@samsung.com>
Showing
想要评论请 注册 或 登录