summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2023-05-24 00:03:49 +0200
committerMark Brown <broonie@kernel.org>2023-05-24 00:03:49 +0200
commit90d0d6009c0f6b0693ac58096c655a2df61e0d50 (patch)
treeb076f02b48dc57f295981e27965bb28e571b5cbc /drivers/base
parentregmap-irq: Cleanups and remove unused (diff)
parentLinux 6.4-rc3 (diff)
downloadlinux-90d0d6009c0f6b0693ac58096c655a2df61e0d50.tar.xz
linux-90d0d6009c0f6b0693ac58096c655a2df61e0d50.zip
regmap: Merge up v6.4-rc3
Merge up v6.4-rc3 to get fixes which make my CI more stable.
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/class.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/class.c b/drivers/base/class.c
index ac1808d1a2e8..05d9df90f621 100644
--- a/drivers/base/class.c
+++ b/drivers/base/class.c
@@ -320,6 +320,7 @@ void class_dev_iter_init(struct class_dev_iter *iter, const struct class *class,
start_knode = &start->p->knode_class;
klist_iter_init_node(&sp->klist_devices, &iter->ki, start_knode);
iter->type = type;
+ iter->sp = sp;
}
EXPORT_SYMBOL_GPL(class_dev_iter_init);
@@ -361,6 +362,7 @@ EXPORT_SYMBOL_GPL(class_dev_iter_next);
void class_dev_iter_exit(struct class_dev_iter *iter)
{
klist_iter_exit(&iter->ki);
+ subsys_put(iter->sp);
}
EXPORT_SYMBOL_GPL(class_dev_iter_exit);