From 15fd75733c14dd97a7e47ac0513cf1cdaaa26e7b Mon Sep 17 00:00:00 2001 From: Luiz Souza Date: Thu, 22 Jun 2017 10:11:02 -0500 Subject: Make the probe routine fail when no compatible is found. (cherry picked from commit c3d78dab701406f5bc46cfc1267df5f24ed4ad7a) --- sys/dev/iicbus/is31fl319x.c | 2 ++ 1 file changed, 2 insertions(+) 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")) -- cgit v1.1