From patchwork Thu Dec 15 09:08:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaoqian Lin X-Patchwork-Id: 33549 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp239012wrn; Thu, 15 Dec 2022 01:17:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf7V2AabHOlTfZ4KVcyC4ls/0K8Qe2ETbHT+QKDNcwU25SWbG9uaXd5NKfPDPqZtd+hBN5H8 X-Received: by 2002:a17:906:405:b0:7c0:affa:866f with SMTP id d5-20020a170906040500b007c0affa866fmr22125747eja.26.1671095821828; Thu, 15 Dec 2022 01:17:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671095821; cv=none; d=google.com; s=arc-20160816; b=XITYnAZ5ZZ04KS7dzavNM1gNXGcwg3qREJFTnI4x0ksdYSEORiAxfToNkyxYd8hsuH 2Wyhp5zX7fAS5SSmm47tVHtetT65xTbUSfQ9aFaUtI6LkI0GKuctKeFdzPFv2Oh5L0Pj qighfWpfoUFHjtX+zyncGJWTRb96D4Vq3kMDGTe2a1MycRf3bkSt1wxX0joYRuWjS4x+ vaBW6Y1yyJ3Ui741//v2JqVZVq+oGXZibOqdqIGr6h1r3jXfGWC9TChe9NN6D4GUcwP3 C8HGE1/cu7j1AzzUhpG2wIsSyRT0W0ESLmu04Eg2BxX6zyjuz/teFi9xIUPOHBz0ybny gabg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=dTXgzkmzEXq9c8dhQy7zxMXflpU+wcLdDMcNDOUKRM8=; b=iVS3xVsLlZx5HvPORQxL1JDKuWlX9VvcTsrbxh4KvZoMjVni8E+Y7ZJuqK7l8xh6r1 KLpzptnnFoEplUd2WDl+zAh2/EmYE6YQUpU8Afp9NCo61ewgGqcnCqAijIUeyYi/BGfe V1vFkfl2+REY3FAvKxtovmwzb4bEl2ea04WwqotGSJiAjk6Yr+SZT6+3qMLmAjb4s6Lq 05GuuvUsq13qD1f2QMiH3vkZWf15Lbx22U7rVDnA5l4h9MyGy6J/eMaPJ+9nc80b8bPD vKmLxyf2395cEgPVCWE6b9BFQaZGlthwOuZN9ZvAyaCwPrfG3GoeYxoxjUuczTmkXLTY 2wIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RwMVV82b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l7-20020a170906794700b007ae1723e8d7si15358973ejo.610.2022.12.15.01.16.38; Thu, 15 Dec 2022 01:17:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RwMVV82b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229783AbiLOJIR (ORCPT + 99 others); Thu, 15 Dec 2022 04:08:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbiLOJIO (ORCPT ); Thu, 15 Dec 2022 04:08:14 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65EB846669 for ; Thu, 15 Dec 2022 01:08:13 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id 4so6201758plj.3 for ; Thu, 15 Dec 2022 01:08:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=dTXgzkmzEXq9c8dhQy7zxMXflpU+wcLdDMcNDOUKRM8=; b=RwMVV82bIWIUmHi2nCdHz1a9mWsmpK00U8i3oe9gyq2kRW7BrQMaIilETHM/JtDgIq rcOTzGpdC73f6RlWf+9A5iLEOh4AlIMgQyIbDlu34OgP1pfqZ+5NUA4oq9SBkGq1zRAu pdNW+8JOj+HOKBw1+0Bbogn9pD0ZVtm7cDeZqJBDaRlFG+BijpcyUffxBZpmJuO54XIT Ze3PsyPDCo19S0m15yTmzNSVXU6Xz/Vq06TpTDj7Zw63PhTpmdw+/2KsunLSwRydGotm k50on83Onvytj9jb+xNwIW6X5JNIUw9qHGrMgC0tpeJ4g0tZW9SmvHyaGVWf+ygO1xzF SqdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dTXgzkmzEXq9c8dhQy7zxMXflpU+wcLdDMcNDOUKRM8=; b=OpW5+OYFfFL8BNjWK5UAf+wIg4NgqQEPC02MlDDO9uFypSG8PGbjJsqAnquUcmI7Pj dtQG82yhglo6+hvQT/vMBOzxdWpjU0bX+UkIppIYIZ8FL3nngTyknxcK2oDs6jcQstN0 xP/ne4ybpvGkz1j+7cyDzxBOeCK49vsbc4dftkNMhaecwnrD2iF/7Fl6Vs+2R6zbguLd 4ScnHazaLZGze8wMOW9BBkfPv7S/XJNgCcef9m892P6gNJ+wleDfRN2nlaOnai8diw0B /Nu8wTLZDPSI1eDPzMpcSRjfX0a3cqZIEH/gELdVmSBvEVWJ7zXgUvPVUTZA8sVr1NXQ 3Ypg== X-Gm-Message-State: ANoB5pngHuxCINKocfpsUuVPTjUObzbXk8n3urY0fHEnK4Lit6g2seAF Fm6clGX/XIH/ie7x+7Kh++6NC8bJDmnbbZk6 X-Received: by 2002:a17:90a:a790:b0:20d:bd60:ada4 with SMTP id f16-20020a17090aa79000b0020dbd60ada4mr33651847pjq.32.1671095292939; Thu, 15 Dec 2022 01:08:12 -0800 (PST) Received: from localhost.localdomain ([202.120.234.246]) by smtp.googlemail.com with ESMTPSA id i7-20020a17090a138700b0020b7de675a4sm2619869pja.41.2022.12.15.01.08.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Dec 2022 01:08:12 -0800 (PST) From: Miaoqian Lin To: Arnd Bergmann , Greg Kroah-Hartman , Tony Jones , Kay Sievers , linux-kernel@vger.kernel.org Cc: linmq006@gmail.com Subject: [PATCH] misc: enclosure: Fix doc for enclosure_find() Date: Thu, 15 Dec 2022 13:08:04 +0400 Message-Id: <20221215090804.473022-1-linmq006@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752270972264754606?= X-GMAIL-MSGID: =?utf-8?q?1752270972264754606?= We should use put_device() to release the reference. Fixes: ee959b00c335 ("SCSI: convert struct class_device to struct device") Signed-off-by: Miaoqian Lin --- drivers/misc/enclosure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/enclosure.c b/drivers/misc/enclosure.c index 1b010d9267c9..4ba966529458 100644 --- a/drivers/misc/enclosure.c +++ b/drivers/misc/enclosure.c @@ -32,7 +32,7 @@ static struct class enclosure_class; * found. @start can be used as a starting point to obtain multiple * enclosures per parent (should begin with NULL and then be set to * each returned enclosure device). Obtains a reference to the - * enclosure class device which must be released with device_put(). + * enclosure class device which must be released with put_device(). * If @start is not NULL, a reference must be taken on it which is * released before returning (this allows a loop through all * enclosures to exit with only the reference on the enclosure of