From 907f35efffb096593c508b8fc7a7d8988c8c2499 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 21 Apr 2022 10:29:14 -0700 Subject: [PATCH] ccp: Use devclass_find to lookup devclass in db_show_ccp. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D35003 --- sys/crypto/ccp/ccp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/crypto/ccp/ccp.c b/sys/crypto/ccp/ccp.c index 4ceb028b593..b41b86f111c 100644 --- a/sys/crypto/ccp/ccp.c +++ b/sys/crypto/ccp/ccp.c @@ -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;