Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
authorJaroslav Kysela <perex@hera.kernel.org>
Tue, 21 Jun 2005 14:39:41 +0000 (07:39 -0700)
committerJaroslav Kysela <perex@hera.kernel.org>
Tue, 21 Jun 2005 14:39:41 +0000 (07:39 -0700)
1  2 
sound/core/sound.c

diff --combined sound/core/sound.c
@@@ -64,7 -64,7 +64,7 @@@ static struct list_head snd_minors_hash
  
  static DECLARE_MUTEX(sound_mutex);
  
- extern struct class_simple *sound_class;
+ extern struct class *sound_class;
  
  
  #ifdef CONFIG_KMOD
@@@ -231,7 -231,7 +231,7 @@@ int snd_register_device(int type, snd_c
                devfs_mk_cdev(MKDEV(major, minor), S_IFCHR | device_mode, "snd/%s", name);
        if (card)
                device = card->dev;
-       class_simple_device_add(sound_class, MKDEV(major, minor), device, name);
+       class_device_create(sound_class, MKDEV(major, minor), device, "%s", name);
  
        up(&sound_mutex);
        return 0;
@@@ -263,7 -263,7 +263,7 @@@ int snd_unregister_device(int type, snd
  
        if (strncmp(mptr->name, "controlC", 8) || card->number >= cards_limit) /* created in sound.c */
                devfs_remove("snd/%s", mptr->name);
-       class_simple_device_remove(MKDEV(major, minor));
+       class_device_destroy(sound_class, MKDEV(major, minor));
  
        list_del(&mptr->list);
        up(&sound_mutex);
@@@ -431,6 -431,7 +431,6 @@@ EXPORT_SYMBOL(snd_card_pci_resume)
  EXPORT_SYMBOL(snd_device_new);
  EXPORT_SYMBOL(snd_device_register);
  EXPORT_SYMBOL(snd_device_free);
 -EXPORT_SYMBOL(snd_device_free_all);
    /* isadma.c */
  #ifdef CONFIG_ISA
  EXPORT_SYMBOL(snd_dma_program);