Browse Source

Bugfix: Don't try to call lowl_probe for drivers that don't support that interface

Luke Dashjr 12 years ago
parent
commit
8fc696181d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      miner.c

+ 2 - 0
miner.c

@@ -10473,6 +10473,8 @@ noauto: ;
 		BFG_FOREACH_DRIVER_BY_PRIORITY(dreg, dreg_tmp)
 		{
 			const struct device_drv * const drv = dreg->drv;
+			if (!drv->lowl_probe)
+				continue;
 			if (drv->lowl_probe(info))
 				return NULL;
 		}