freebsd-dev/sys/arm/freescale
Oleksandr Tymoshenko 108117cc22 [ofw] fix errneous checks for OF_finddevice(9) return value
OF_finddevices returns ((phandle_t)-1) in case of failure. Some code
in existing drivers checked return value to be equal to 0 or
less/equal to 0 which is also wrong because phandle_t is unsigned
type. Most of these checks were for negative cases that were never
triggered so trhere was no impact on functionality.

Reviewed by:	nwhitehorn
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D14645
2018-03-20 00:03:49 +00:00
..
imx Switch imx_gpio to attach at BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE. 2018-03-05 02:32:23 +00:00
vybrid [ofw] fix errneous checks for OF_finddevice(9) return value 2018-03-20 00:03:49 +00:00
fsl_ocotp.c [ofw] fix errneous checks for OF_finddevice(9) return value 2018-03-20 00:03:49 +00:00
fsl_ocotpreg.h sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00
fsl_ocotpvar.h sys/arm: further adoption of SPDX licensing ID tags. 2017-11-27 15:04:10 +00:00