summaryrefslogtreecommitdiffstats
path: root/drivers/staging/most/core.c
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2017-11-21 15:04:54 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-27 09:20:35 +0100
commit3d6eb1d238ee981d2881c8478ed5bd3e948c1eb0 (patch)
tree87304d2f063e640e94ee83150a17a8c5421f37a2 /drivers/staging/most/core.c
parentbdafb7e83b0229379b11bfdd36ccfb3adf447666 (diff)
downloadlinux-3d6eb1d238ee981d2881c8478ed5bd3e948c1eb0.tar.bz2
staging: most: core: remove struct device
This patch takes out the struct device of struct most_aim, because it is not needed. Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most/core.c')
-rw-r--r--drivers/staging/most/core.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/staging/most/core.c b/drivers/staging/most/core.c
index 37b9703504cf..076d4f2756ff 100644
--- a/drivers/staging/most/core.c
+++ b/drivers/staging/most/core.c
@@ -1304,32 +1304,16 @@ out:
}
EXPORT_SYMBOL_GPL(most_stop_channel);
-void release_aim(struct device *dev)
-{
- pr_info("releasing aim %s\n", dev_name(dev));
-}
-
/**
* most_register_aim - registers an AIM (driver) with the core
* @aim: instance of AIM to be registered
*/
int most_register_aim(struct most_aim *aim)
{
- int ret;
-
if (!aim) {
pr_err("Bad driver\n");
return -EINVAL;
}
- aim->dev.init_name = aim->name;
- aim->dev.bus = &mc.bus;
- aim->dev.parent = &mc.dev;
- aim->dev.release = release_aim;
- ret = device_register(&aim->dev);
- if (ret) {
- pr_err("registering device %s failed\n", aim->name);
- return ret;
- }
list_add_tail(&aim->list, &mc.mod_list);
pr_info("registered new application interfacing module %s\n", aim->name);
return 0;
@@ -1361,7 +1345,6 @@ int most_deregister_aim(struct most_aim *aim)
c->pipe1.aim = NULL;
}
}
- device_unregister(&aim->dev);
list_del(&aim->list);
pr_info("deregistering application interfacing module %s\n", aim->name);
return 0;