diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2017-11-21 15:05:09 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-27 09:20:36 +0100 |
commit | 90c8d77fcb24d7611cfff5931fcd8f0a3b756c3a (patch) | |
tree | aa2c6d3bcb8f6d8bdbcef29893e69533f4560d37 /drivers/staging/most | |
parent | ef0fbbbb9a6004af07bbb76aac718dd6dfc2d80e (diff) | |
download | blackbird-obmc-linux-90c8d77fcb24d7611cfff5931fcd8f0a3b756c3a.tar.gz blackbird-obmc-linux-90c8d77fcb24d7611cfff5931fcd8f0a3b756c3a.zip |
staging: most: cdev: rename variable aim_devno
This patch renames the variable aim_devno to comp_devno. It is needed
to complete the process of changing the module designator from AIM to
Component.
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/cdev/cdev.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/most/cdev/cdev.c b/drivers/staging/most/cdev/cdev.c index 7507b38f8e35..e39fca614593 100644 --- a/drivers/staging/most/cdev/cdev.c +++ b/drivers/staging/most/cdev/cdev.c @@ -18,7 +18,7 @@ #include <linux/idr.h> #include "most/core.h" -static dev_t aim_devno; +static dev_t comp_devno; static struct class *aim_class; static struct ida minor_id; static unsigned int major; @@ -507,10 +507,10 @@ static int __init mod_init(void) spin_lock_init(&ch_list_lock); ida_init(&minor_id); - err = alloc_chrdev_region(&aim_devno, 0, 50, "cdev"); + err = alloc_chrdev_region(&comp_devno, 0, 50, "cdev"); if (err < 0) goto dest_ida; - major = MAJOR(aim_devno); + major = MAJOR(comp_devno); aim_class = class_create(THIS_MODULE, "most_cdev_aim"); if (IS_ERR(aim_class)) { @@ -526,7 +526,7 @@ static int __init mod_init(void) dest_class: class_destroy(aim_class); free_cdev: - unregister_chrdev_region(aim_devno, 1); + unregister_chrdev_region(comp_devno, 1); dest_ida: ida_destroy(&minor_id); return err; @@ -545,7 +545,7 @@ static void __exit mod_exit(void) destroy_channel(c); } class_destroy(aim_class); - unregister_chrdev_region(aim_devno, 1); + unregister_chrdev_region(comp_devno, 1); ida_destroy(&minor_id); } |