From nobody Thu Apr 21 17:30:05 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2E9561990A00; Thu, 21 Apr 2022 17:30:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kkl0s40CMz4WVv; Thu, 21 Apr 2022 17:30:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650562205; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=i7jvYQqjPxUjqGPzP/xZVlyK3+INdplItUlrPcgf2WU=; b=ZN6Abc8hVLbdT09ixOrdwhd497CoG1B/65hHXCKoF8ANLyVAYeQFxZ2w5ct+vAUKaaWk4e pCEbf19S/fEp8S1y8Se4IdWyXNXvPY8nu0QjYWgpahYzs85622sbIgoZ2klfNv+8EddSZo dm8S9vMfCDx2YpmIIDnplEUrKZbd2v/OzZ6N0Gmu7DRrzwnYOlIOQR3SNdGm+G3ayOhKq1 RshlvYisyirhicfIzjsZ2tX7hCAF6YtEjycp7d33lCxMw/gxwGhJx3YJ3EIMnaY7gI+CiN tInoUKZbExysdWp58DpF4rNqH+96viem55ncTAzvwzDELSjMNC4Cl/LkJC2xlA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 676314E38; Thu, 21 Apr 2022 17:30:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23LHU52N002115; Thu, 21 Apr 2022 17:30:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23LHU58k002112; Thu, 21 Apr 2022 17:30:05 GMT (envelope-from git) Date: Thu, 21 Apr 2022 17:30:05 GMT Message-Id: <202204211730.23LHU58k002112@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 82496a256fd4 - main - nvme: Use devclass_find to lookup the nvme devclass. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 82496a256fd4fe5b0e8dbd2d704e222752ae5edd Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650562205; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=i7jvYQqjPxUjqGPzP/xZVlyK3+INdplItUlrPcgf2WU=; b=ei8Y8MwRsJglek2KpaBm/F5pQFW1T2jIrXs+X2YVpsdtMe2Y7zT3Ai/IdLluJL8wTLXSyq It8MH2u1Wh5wq6AarMg6UFHSu4ydYsJhSSWQmb97eDMCo17dS5MoxbYwI419GhS4Ui/BWO unGILhcIiFjmZlDppMJ7U3BN2zMG4guJKNsSo5XQXFXqr5FtufVcJ47/3dYx3Vuk1vNcPh G2f2h45A7Y6JG0P4InneAAH1WxGN2pQBdmiwSNSMVsPpnx7zwm0Q7P4oGjeOMyYUl0q29+ 0bwjNL6njAzxDOeuoZ5R3ZQLf2zlqSVLx2p5D+M8x8SGrPKfuq9Cq4lmExg1SQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650562205; a=rsa-sha256; cv=none; b=AIuH3JZQnddvwsD01E6HQ1xXaoJ/zjlEnJHgj9CawaM6n65Y//LkE0M8eQQXJBrzKpZzDe tMJBKdRT1WA1zGRccFF3AOKpGXtLD/Sajn7XJzfhmsqSCrBZR/kUKXyZEtxiRz+2m5c/2H Zhu2PRp9x3cidvI2eFZmxGpNwcZ/657ySzudTHLNF4Ij47aR0KQZ/O27Vqw+msKRhzM8IA eRTm4ZhzmW1kGIU01yeVbzaHHlmp/zadOJyuDQRwvFft6DzONWMfVC4/PAhyhpY/Dp942M I/znm4RjPPt41QziIlToYZ74zr6In6wXx+0e1c91FuhW6vsgnsf58oNOEW3zlw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=82496a256fd4fe5b0e8dbd2d704e222752ae5edd commit 82496a256fd4fe5b0e8dbd2d704e222752ae5edd Author: John Baldwin AuthorDate: 2022-04-21 17:29:14 +0000 Commit: John Baldwin CommitDate: 2022-04-21 17:29:14 +0000 nvme: Use devclass_find to lookup the nvme devclass. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D34995 --- sys/dev/nvme/nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/nvme/nvme.c b/sys/dev/nvme/nvme.c index f36125ba247b..15fb456a1c54 100644 --- a/sys/dev/nvme/nvme.c +++ b/sys/dev/nvme/nvme.c @@ -220,7 +220,7 @@ nvme_notify_new_consumer(struct nvme_consumer *cons) struct nvme_controller *ctrlr; int dev_idx, devcount; - if (devclass_get_devices(nvme_devclass, &devlist, &devcount)) + if (devclass_get_devices(devclass_find("nvme"), &devlist, &devcount)) return; for (dev_idx = 0; dev_idx < devcount; dev_idx++) {