of: unittest: fix an error test in of_unittest_overlay_8()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 7 Mar 2018 06:18:08 +0000 (09:18 +0300)
committerRob Herring <robh@kernel.org>
Thu, 8 Mar 2018 02:12:05 +0000 (20:12 -0600)
commitbdb7013df910681f84eff27b07791d4c160cb76f
treeddf391c2c0479dd0bd41f115ccacc1e939a360d2
parent0b3ce78e90fc66c50a944320d6e39fa6fdb46cdf
of: unittest: fix an error test in of_unittest_overlay_8()

We changed this from of_overlay_apply() to overlay_data_apply().  The
overlay_data_apply() function returns 1 on success and 0 on error so
the check for less than zero needs to be updated.

Fixes: 39a751a4cb7e ("of: change overlay apply input data from unflattened to FDT")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Frank Rowand <frowand.list@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/unittest.c