aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/most
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2017-11-21 15:05:21 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-27 09:20:37 +0100
commiteb9e2bc80d1451b116f9964a84a49f89d38b1e05 (patch)
tree20d03da11d4e3da3672287ffdcbf1a6190402350 /drivers/staging/most
parentstaging: most: cdev: bundle module variables in structure (diff)
downloadlinux-dev-eb9e2bc80d1451b116f9964a84a49f89d38b1e05.tar.xz
linux-dev-eb9e2bc80d1451b116f9964a84a49f89d38b1e05.zip
staging: most: core: remove class generation
This patch stops the core from generating a module owned class and registering it with the kernel. It is needed, because there is no need for a default MOST class to be present in the kernel. Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most')
-rw-r--r--drivers/staging/most/core.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/staging/most/core.c b/drivers/staging/most/core.c
index 6e7dcb5999bd..bfd1a028ccad 100644
--- a/drivers/staging/most/core.c
+++ b/drivers/staging/most/core.c
@@ -33,7 +33,6 @@ static struct mostcore {
struct device dev;
struct device_driver drv;
struct bus_type bus;
- struct class *class;
struct list_head comp_list;
} mc;
@@ -1558,17 +1557,10 @@ static int __init most_init(void)
pr_info("Cannot register most bus\n");
return err;
}
- mc.class = class_create(THIS_MODULE, "most");
- if (IS_ERR(mc.class)) {
- pr_info("No udev support.\n");
- err = PTR_ERR(mc.class);
- goto exit_bus;
- }
-
err = driver_register(&mc.drv);
if (err) {
pr_info("Cannot register core driver\n");
- goto exit_class;
+ goto exit_bus;
}
mc.dev.init_name = "most_bus";
mc.dev.release = release_most_sub;
@@ -1581,8 +1573,6 @@ static int __init most_init(void)
exit_driver:
driver_unregister(&mc.drv);
-exit_class:
- class_destroy(mc.class);
exit_bus:
bus_unregister(&mc.bus);
return err;
@@ -1593,7 +1583,6 @@ static void __exit most_exit(void)
pr_info("exit core module\n");
device_unregister(&mc.dev);
driver_unregister(&mc.drv);
- class_destroy(mc.class);
bus_unregister(&mc.bus);
ida_destroy(&mdev_id);
}