- devfs_mk_cdev(MKDEV(SOUND_MAJOR, s->unit_minor),
- S_IFCHR | mode, s->name);
- class_device_create(sound_class, MKDEV(SOUND_MAJOR, s->unit_minor),
- NULL, s->name+6);
+ class_device_create(sound_class, NULL, MKDEV(SOUND_MAJOR, s->unit_minor),
+ dev, s->name+6);