static int sound_insert_unit(...) { ... if (...) ... else sprintf(s->name, "sound/%s%d", name, r / SOUND_STEP); ... class_device_create(sound_class, MKDEV(SOUND_MAJOR, s->unit_minor), NULL, s->name+6); ... }