freebsd-skq/sys/powerpc
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
..
aim Restore missing temporary variable, deleted by accident in r330845. This 2018-03-13 18:24:21 +00:00
booke Fix the psl_userset32 definition. 2018-03-01 04:44:17 +00:00
conf PowerNV: Initial support for OPAL I2C transfers 2018-03-01 14:11:07 +00:00
cpufreq [ofw] fix errneous checks for OF_finddevice(9) return value 2018-03-20 00:03:49 +00:00
fpu sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
include Move the powerpc64 direct map base address from zero to high memory. This 2018-03-07 17:08:07 +00:00
mambo sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
mikrotik - Allow different slicers for different flash types to be registered 2017-02-22 10:21:39 +00:00
mpc85xx Remove platform_cpu_idle() and platform_cpu_idle_wakeup() interfaces 2018-02-24 01:46:56 +00:00
ofw Execute PowerPC64/AIM kernel from direct map region when possible. 2018-03-13 15:03:58 +00:00
powermac Fix minor locking issues in the Power Mac Uninorth PCI bridge driver. 2018-01-10 22:19:11 +00:00
powernv Reverting r330925 for now 2018-03-15 06:19:45 +00:00
powerpc Execute PowerPC64/AIM kernel from direct map region when possible. 2018-03-13 15:03:58 +00:00
ps3 Move the powerpc64 direct map base address from zero to high memory. This 2018-03-07 17:08:07 +00:00
pseries [ofw] fix errneous checks for OF_finddevice(9) return value 2018-03-20 00:03:49 +00:00
psim sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00