complain when you do not create a TLSB node

This commit is contained in:
Matt Jacob 2000-03-27 08:20:44 +00:00
parent 69dfb51f72
commit 4cf46078d1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58656

View File

@ -280,13 +280,15 @@ tlsb_add_child(struct tlsb_softc *tlsb, struct tlsb_device *tdev)
cpuproto += 2;
break;
default:
printf("tlsb_add_child: unknown TLSB node type 0x%x\n", dtype);
return;
}
for (i = 0; i < units; i++, unit++) {
cd = device_add_child_ordered(tlsb->tlsb_dev, ordr, dn, unit);
if (cd == NULL)
if (cd == NULL) {
return;
}
device_set_ivars(cd, tdev);
device_set_desc(cd, tlsb_node_type_str(dtype));
}