ccp: Use devclass_find to lookup devclass in db_show_ccp.
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D35003
This commit is contained in:
parent
3d7e90fc20
commit
907f35efff
@ -766,7 +766,7 @@ DB_SHOW_COMMAND(ccp, db_show_ccp)
|
||||
|
||||
unit = (unsigned)addr;
|
||||
|
||||
sc = devclass_get_softc(ccp_devclass, unit);
|
||||
sc = devclass_get_softc(devclass_find("ccp"), unit);
|
||||
if (sc == NULL) {
|
||||
db_printf("No such device ccp%u\n", unit);
|
||||
goto usage;
|
||||
|
Loading…
Reference in New Issue
Block a user