power: max77843_charger: fix not to check null for max77843_charger_dt_init()
authorDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 16 Aug 2016 02:14:22 +0000 (11:14 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:52:28 +0000 (13:52 +0900)
commitd883d3221625f7193a7b21890b11de764778f749
tree5cab900d709793431803795ec16ee7d81fc9a50f
parent09f5605627bf94ae5a6824a718c3e1aecfa93eeb
power: max77843_charger: fix not to check null for max77843_charger_dt_init()

In order to check error of max77843_charger_dt_init(), IS_ERR()
should be used instead of IS_ERR_OR_NULL() because it never returns
NULL.

Change-Id: Icac4e707bf269fcb40c8f7289930684c6912f048
Suggested-by: Sylwester Nawrocki <a.nawrocki@samsung.com>
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
drivers/power/max77843_charger.c