power: max77843_charger: fix not to check null for max77843_charger_dt_init() 47/83947/1
authorDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 16 Aug 2016 02:14:22 +0000 (11:14 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 16 Aug 2016 02:25:46 +0000 (11:25 +0900)
commit820c7dde822f3d5fd73b0d36c06ac78fcae54bb1
treeba2368261c89a893b55820241ef2cd12c0a481f1
parent2d4c5a6ba253b9c93c3509254b6cd4326671a135
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