diff options
Diffstat (limited to 'core.c')
-rw-r--r-- | core.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -25,7 +25,7 @@ MODULE_LICENSE("GPL v2"); #define D_PRINTK(fmt, args...) DDEBUG(D_LOGNAME, fmt, ##args) #define D_ERRORK(fmt, args...) DERROR(D_LOGNAME, fmt, ##args) -#define SND_AVIRTUAL_DRIVER "snd_avirt" +#define SND_AVIRT_DRIVER "snd_avirt" static struct snd_avirt_core core = { .version = { 0, 0, 1 }, @@ -449,13 +449,13 @@ static int __init core_init(void) D_INFOK("Alsa Virtual Sound Driver avirt-%d.%d.%d", core.version[0], core.version[1], core.version[2]); - core.avirt_class = class_create(THIS_MODULE, SND_AVIRTUAL_DRIVER); - if (IS_ERR(core.avirt_class)) { + core.class = class_create(THIS_MODULE, SND_AVIRT_DRIVER); + if (IS_ERR(core.class)) { D_ERRORK("No udev support"); - return PTR_ERR(core.avirt_class); + return PTR_ERR(core.class); } - core.dev = device_create(core.avirt_class, NULL, 0, NULL, "avirtcore"); + core.dev = device_create(core.class, NULL, 0, NULL, "avirtcore"); if (IS_ERR(core.dev)) { err = PTR_ERR(core.dev); goto exit_class; @@ -490,9 +490,9 @@ static int __init core_init(void) exit_snd_card: snd_card_free(core.card); exit_class_container: - device_destroy(core.avirt_class, 0); + device_destroy(core.class, 0); exit_class: - class_destroy(core.avirt_class); + class_destroy(core.class); return err; } @@ -506,8 +506,8 @@ static void __exit core_exit(void) kset_unregister(snd_avirt_audiopath_kset); snd_card_free(core.card); - device_destroy(core.avirt_class, 0); - class_destroy(core.avirt_class); + device_destroy(core.class, 0); + class_destroy(core.class); } module_init(core_init); |