From patchwork Sat Apr 1 17:10:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 78152 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1343969vqo; Sat, 1 Apr 2023 10:20:12 -0700 (PDT) X-Google-Smtp-Source: AK7set+JGtBdyEoodwOxoU3yu17qOgFAAqZUhwujkzqB9OtGQR/a0Npazc6uVXt5sPhR01831tpq X-Received: by 2002:a05:6a20:6730:b0:db:df13:4f73 with SMTP id q48-20020a056a20673000b000dbdf134f73mr26827861pzh.26.1680369612174; Sat, 01 Apr 2023 10:20:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680369612; cv=none; d=google.com; s=arc-20160816; b=EkUz490qcAcOf0FeoCif//ixCvqs/V6oKV5gEt+z+w6ik1LCD4QMTP0Mngwc9IW6fr u/0cD2JvjZk4NEzJe2w+sWiinltzvL9Py28CqmgdVbLEmuW4RN8ZqzLjA14r/iX89L5V 7/QyQogtTJuBWhTR1hSonsBvFe0LWU2iF0xffWTc/XaNZ1O+jN+KIKx1Ry5ml+7LpklB 1ngi9SbysU/ryRZ5g/Ms8/ZC+hO/ou9cwY3FSmCtl2AHNt7SG62ojtLHJBrNKVfhmx1X oYYinPcbmOWdmCrs3xGCqco5hxEMO9fMJApplY5PpS/1P4TQdPju2vFNFC2WoqxStVhL DGZw== 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=S4nKJ5XIONfOzD3wiA+/2nT3agia+JpB8aqucJ/AHGrsNlLgQzUrjxawIIEL2UjntY tC8n6CoCJM6H5Gj9N2u0AfWjM7K8rUF5Xd/r4h3IWplOZGEsDE0vM+ccEDYqxxE47kuK BSR9EjZG4xZc7FvYuDp2lj5bzf68hSr+zEMYHjHyYecDz/yTSPx7cF68KE4+BykUw3Fx IDJH1lEWsIac5BpvB0NqQGX4v1z/HBjVChDVpbmTawqcWelZUDnOQahd09EsKUjsrKoA Uwe0eizAT8HaRINrMnaXeJ2vlkZu7lUP9JmS9x015MNIfltFq4iRFri3M1XJ3lcdyZZ3 /5Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="2PrJAg/i"; 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 i186-20020a6254c3000000b005d8fd3b36ecsi5016383pfb.228.2023.04.01.10.19.57; Sat, 01 Apr 2023 10:20:12 -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="2PrJAg/i"; 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 S230071AbjDARKW (ORCPT + 99 others); Sat, 1 Apr 2023 13:10:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbjDARKU (ORCPT ); Sat, 1 Apr 2023 13:10:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 947861BF4C for ; Sat, 1 Apr 2023 10:10:18 -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 1180560ED0 for ; Sat, 1 Apr 2023 17:10:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D953C433D2; Sat, 1 Apr 2023 17:10:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1680369017; bh=1YPYK7sayQjP+I10RuHiG39Itwo4QUIikFgJs5dJUOI=; h=From:To:Cc:Subject:Date:From; b=2PrJAg/iKyFWKxBi20P4UR09aSuBfQt9ME2YJM5ftl1/VlhNs/B1uxdPKPemfClG5 XPBwm2ZMzjlRUxJuPWzkcTK8H6slmLEVrLc3jZ805+0oyQNMeWy8idjzWPWXTgwW+w 0lU1BuCgUEj2rsSd2Fubef4LpZoBgPpQmJ7tNfxA= 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: Sat, 1 Apr 2023 19:10:11 +0200 Message-Id: <2023040108-rust-railway-d20d@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=owGbwMvMwCRo6H6F97bub03G02pJDCkaqQVMp4X7EhaIeW+9m3HWL9Los/HJokOvzirFOictc krMiFvYEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABM5G8Cw4KbVlCnJTA0vfaYY Pex0EPoqvcHPlWGeCTfD0nONO/1vTl6WaDTVKqlw//+PAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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?1761995246514864164?= X-GMAIL-MSGID: =?utf-8?q?1761995246514864164?= 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 --- 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,