summaryrefslogtreecommitdiff
path: root/drivers/staging/most/cdev
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2017-11-21 15:05:01 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-27 09:20:35 +0100
commited021a0f8e5b1ac2966a997e908c6a7824da6baa (patch)
treeb07c56423be716caf3d7b6448ce5e8955c2d5284 /drivers/staging/most/cdev
parenta12844410c4350305b9ae1c1e0c5d6bd87297e6b (diff)
staging: most: rename functions to register a driver with most_core
This patch renames the functions to register and deregister a component module with the core. It is needed because the modules that interface the userspace are referred to as components. Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most/cdev')
-rw-r--r--drivers/staging/most/cdev/cdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/most/cdev/cdev.c b/drivers/staging/most/cdev/cdev.c
index a45a4dcbeb9b..2447fbfd201e 100644
--- a/drivers/staging/most/cdev/cdev.c
+++ b/drivers/staging/most/cdev/cdev.c
@@ -518,7 +518,7 @@ static int __init mod_init(void)
err = PTR_ERR(aim_class);
goto free_cdev;
}
- err = most_register_aim(&cdev_aim);
+ err = most_register_component(&cdev_aim);
if (err)
goto dest_class;
return 0;
@@ -538,7 +538,7 @@ static void __exit mod_exit(void)
pr_info("exit module\n");
- most_deregister_aim(&cdev_aim);
+ most_deregister_component(&cdev_aim);
list_for_each_entry_safe(c, tmp, &channel_list, list) {
destroy_cdev(c);