mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
driver core: bus: constify class_unregister/destroy()
The class_unregister() and class_destroy() function should be taking a const * to struct class, not just a *, so fix that up. Cc: "Rafael J. Wysocki" <rafael@kernel.org> Link: https://lore.kernel.org/r/20230325084526.3622123-1-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -83,7 +83,7 @@ struct class_dev_iter {
|
||||
extern struct kobject *sysfs_dev_block_kobj;
|
||||
|
||||
int __must_check class_register(struct class *class);
|
||||
void class_unregister(struct class *class);
|
||||
void class_unregister(const struct class *class);
|
||||
|
||||
struct class_compat;
|
||||
struct class_compat *class_compat_register(const char *name);
|
||||
@@ -231,6 +231,6 @@ int __must_check class_interface_register(struct class_interface *);
|
||||
void class_interface_unregister(struct class_interface *);
|
||||
|
||||
struct class * __must_check class_create(const char *name);
|
||||
void class_destroy(struct class *cls);
|
||||
void class_destroy(const struct class *cls);
|
||||
|
||||
#endif /* _DEVICE_CLASS_H_ */
|
||||
|
||||
Reference in New Issue
Block a user