From patchwork Sun Apr 2 09:11:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 78203 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1651298vqo; Sun, 2 Apr 2023 02:31:35 -0700 (PDT) X-Google-Smtp-Source: AKy350b56njopc59zneCTfunbvAM1nCfGSMfJQ5W/FNnfBubCLmseeY0pjnqv0oOG+4pUY1bqMCv X-Received: by 2002:a17:907:6d9c:b0:8b1:3483:e3d5 with SMTP id sb28-20020a1709076d9c00b008b13483e3d5mr42846008ejc.48.1680427895200; Sun, 02 Apr 2023 02:31:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680427895; cv=none; d=google.com; s=arc-20160816; b=gLFzvd/sXsLZOL21GThRE268NZAqxcJhqGRNXocgBc2uqcDjpeTJfTh3Ee6GOLpypq w4nxgV4huWdoO5NBh0JynqI12QhyctMKJ5f6Fa3hy4tEp69WgRZMviJQ5+N85YpA9MQ0 VN1NAN+9VDZK63APQM/QiKoZqvxALGliEMk6EPrKIFNrcr4wgB9JPI8ujCpToqXa3ehX lqmt00AiwwQmustFjTty6lYy3fkZ2larsBFMhQw5LBl9EPqYxGM5CRLiL9wYWh/lsw7B N5paHEipNMWVT7LwWsgws6GmkAkCbP2Lc+7MxIfHm2kQhnO51beldq7dxUIarfUFprkT hauA== 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=HZZlSVMJbHCyi1NGhZbi4t9EwwiUE6D09hsQzTtgLA0=; b=vOTkTz0/1c+RrLwix/MWrOd4Q5RjHhE0cx8jHWnuyXVmPrhrKOprW6YOxocJthtHoB 71dhqb3uS3eHqkXnVW6wYZVdBlcoJYuKfCLgGr+BG0lCjE3NK6i6N58/mWyQ+TZzS1fH eD0Yv7Jd14yKsPvv4lXBPWs/DuAN2i8dnzotsOAmcWTfwv5admyeaUF26telaAgXbYpk VDhqSj+Hw5gABYlx5uUioJEVO2ZYrjyNFI8AuF8MvvC5LsO05ZGO49faNopSZEC09oEm pDdFLyS6W+MKN/vc2ABYDbQf09icChG9v7OJsv98k+dgOG3FrBhOPE1VxulKKGvf/xDs E/Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dXmn9KPR; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg20-20020a170907971400b00947f4e2c36asi3880556ejc.760.2023.04.02.02.31.11; Sun, 02 Apr 2023 02:31:35 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=dXmn9KPR; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230242AbjDBJLe (ORCPT + 99 others); Sun, 2 Apr 2023 05:11:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjDBJLc (ORCPT ); Sun, 2 Apr 2023 05:11:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 279B1C641 for ; Sun, 2 Apr 2023 02:11:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BDA7C60917 for ; Sun, 2 Apr 2023 09:11:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB11FC433EF; Sun, 2 Apr 2023 09:11:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1680426690; bh=1YPYK7sayQjP+I10RuHiG39Itwo4QUIikFgJs5dJUOI=; h=From:To:Cc:Subject:Date:From; b=dXmn9KPR+SF/Hv52lz4rgiD1pLhkmp9/xXJ2Hfqc/E5lgJ7i92ClRK9/phRLgzIAk wUTlNfF3Lbv67OAylQ13C+35QWyeLG+5MmrSmiNXkyN48DuLynfWOljOjuQsuKrMKu I/uYY2wXkdYeR9DgR3Amy8a+Um4KV++wnzE54H/Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" Subject: [PATCH] driver core: remove incorrect comment for device_create* Date: Sun, 2 Apr 2023 11:11:18 +0200 Message-Id: <2023040218-scouts-unplowed-24d2@gregkh> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1486; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1YPYK7sayQjP+I10RuHiG39Itwo4QUIikFgJs5dJUOI=; b=owGbwMvMwCRo6H6F97bub03G02pJDCmabts27PU4rHbVV1Ip0/avgL+RD3P8nK9BbqnrU1YKb nrQ9Uy4I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYivYNhwfLrDVtzZmtdtrPs yP4oxc7y5eb6Fwzzs/fp5Vz20lpf2Rqy01ZAY0Z19Il2AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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?1762056360269403148?= X-GMAIL-MSGID: =?utf-8?q?1762056360269403148?= The device_create() and device_create_with_groups() function comments incorrectly state that they only work with a struct class that was created using class_create(), but that is not true now and I am not sure if it ever was. So just remove the comment as it's not needed now. Cc: "Rafael J. Wysocki" Signed-off-by: Greg Kroah-Hartman Acked-by: Rafael J. Wysocki --- drivers/base/core.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/base/core.c b/drivers/base/core.c index 3ee5d206e7eb..7a42d1b6b721 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -4330,9 +4330,6 @@ device_create_groups_vargs(const struct class *class, struct device *parent, * pointer. * * Returns &struct device pointer on success, or ERR_PTR() on error. - * - * Note: the struct class passed to this function must have previously - * been created with a call to class_create(). */ struct device *device_create(const struct class *class, struct device *parent, dev_t devt, void *drvdata, const char *fmt, ...) @@ -4371,9 +4368,6 @@ EXPORT_SYMBOL_GPL(device_create); * pointer. * * Returns &struct device pointer on success, or ERR_PTR() on error. - * - * Note: the struct class passed to this function must have previously - * been created with a call to class_create(). */ struct device *device_create_with_groups(const struct class *class, struct device *parent, dev_t devt,