fixed error lol
This commit is contained in:
parent
f4d4db43f8
commit
ea84bfe7fb
@ -125,7 +125,7 @@ static int __init audio_mixer_init(void) {
|
|||||||
return major_number;
|
return major_number;
|
||||||
}
|
}
|
||||||
|
|
||||||
audio_class = class_create(THIS_MODULE, CLASS_NAME); // Use the module owner and class name
|
audio_class = class_create(CLASS_NAME); // Use the class name only
|
||||||
if (IS_ERR(audio_class)) {
|
if (IS_ERR(audio_class)) {
|
||||||
unregister_chrdev(major_number, DEVICE_NAME);
|
unregister_chrdev(major_number, DEVICE_NAME);
|
||||||
printk(KERN_ALERT "Audio Mixer: Failed to register device class\n");
|
printk(KERN_ALERT "Audio Mixer: Failed to register device class\n");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user