static void sound_remove_unit(...)
{
  ...
  if (p) {
    ...
    class_device_destroy(sound_class, MKDEV(SOUND_MAJOR, p->unit_minor));
    ...
  }
}