summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-04-02 12:11:18 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-04-03 20:57:46 +0300
commita131e33715fca8a047bdfc3d67b10eb743eea4b0 (patch)
tree0a47fe93c7f8caf9e051f57cb5106d1e1750cac9 /drivers/base
parent5b524e4d16685a548ba143551709ded609d8ee05 (diff)
downloadlinux-a131e33715fca8a047bdfc3d67b10eb743eea4b0.tar.xz
driver core: remove incorrect comment for device_create*
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. Acked-by: Rafael J. Wysocki <rafael@kernel.org> Link: https://lore.kernel.org/r/2023040218-scouts-unplowed-24d2@gregkh Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/core.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 47e16c088e77..64d188be4df9 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -4332,9 +4332,6 @@ error:
* 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, ...)
@@ -4373,9 +4370,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,