diff options
author | Luiz Souza <luiz@netgate.com> | 2017-06-22 10:11:02 -0500 |
---|---|---|
committer | Luiz Souza <luiz@netgate.com> | 2017-07-17 15:05:06 -0500 |
commit | 15fd75733c14dd97a7e47ac0513cf1cdaaa26e7b (patch) | |
tree | 70cb54f50d4f9dc83db77a555be4677e713ad903 | |
parent | 80141235623e9dae5c6dc339f0e98f68be36ee4e (diff) | |
download | FreeBSD-src-15fd75733c14dd97a7e47ac0513cf1cdaaa26e7b.zip FreeBSD-src-15fd75733c14dd97a7e47ac0513cf1cdaaa26e7b.tar.gz |
Make the probe routine fail when no compatible is found.
(cherry picked from commit c3d78dab701406f5bc46cfc1267df5f24ed4ad7a)
-rw-r--r-- | sys/dev/iicbus/is31fl319x.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/iicbus/is31fl319x.c b/sys/dev/iicbus/is31fl319x.c index 532c73c6..a965721 100644 --- a/sys/dev/iicbus/is31fl319x.c +++ b/sys/dev/iicbus/is31fl319x.c @@ -107,6 +107,8 @@ is31fl319x_probe(device_t dev) desc = "ISSI IS31FL3199 9 channel light effect LED driver"; sc->sc_max_pins = 9; break; + default: + return (ENXIO); } node = ofw_bus_get_node(dev); if (!OF_hasprop(node, "gpio-controller")) |