--- - branch: MAIN date: Sat Dec 5 14:48:09 UTC 2020 files: - new: '1.3' old: '1.2' path: src/sys/dev/i2c/pcf8574.c pathrev: src/sys/dev/i2c/pcf8574.c@1.3 type: modified id: 20201205T144809Z.e369597e472bcaf4156a8fd5f868702cf6f6cd1c log: | When matching, try a read in case this is an optional device and isn't actually present. Make sure that we set sc->sc_sme to NULL in failure cases and when we detach in order to avoid calling sysmon_envsys_unregister() with an invalid struct. module: src subject: 'CVS commit: src/sys/dev/i2c' unixtime: '1607179689' user: jdc