Make sure to skip attaching disabled I2C devices. This can happen on
authorpatrick <patrick@openbsd.org>
Thu, 11 Mar 2021 09:15:25 +0000 (09:15 +0000)
committerpatrick <patrick@openbsd.org>
Thu, 11 Mar 2021 09:15:25 +0000 (09:15 +0000)
commitc1762c82da9178fd3dbb9673d7b4a6a76a5da816
tree4955107d166365e6bcb7312634b553122e121c3a
parent69575cce025f4fd12957b33fe8eed59c4ad7f5f2
Make sure to skip attaching disabled I2C devices.  This can happen on
hardware which include a common parent block in their device trees and
only enable the components that were actually implemented, as seen on
e.g. the NanoPi R4S.
sys/dev/fdt/amliic.c
sys/dev/fdt/bcm2835_bsc.c
sys/dev/fdt/imxiic_fdt.c
sys/dev/fdt/mviic.c
sys/dev/fdt/sxitwi.c