Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16191
b: refs/heads/master
c: 3e23c65
h: refs/heads/master
i:
  16189: ba4a9fe
  16187: f67c681
  16183: 1929bcd
  16175: ed8874c
  16159: a287a6a
  16127: b6a4d61
v: v3
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Jan 4, 2006
1 parent ffa5204 commit a68d7bc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2ad5dd8dc31137a050f205525a5cd1a4be76c3f1
refs/heads/master: 3e23c658833f135508127c955d40d7c9387f71dd
1 change: 0 additions & 1 deletion trunk/include/sound/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ struct snd_card {
wait_queue_head_t shutdown_sleep;
struct work_struct free_workq; /* for free in workqueue */
struct device *dev;
struct class_device *parent_device;

#ifdef CONFIG_PM
unsigned int power_state; /* power state */
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/core/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ int snd_device_register_all(struct snd_card *card)
int err;

snd_assert(card != NULL, return -ENXIO);
list_for_each_prev(list, &card->devices) {
list_for_each(list, &card->devices) {
dev = snd_device(list);
if (dev->state == SNDRV_DEV_BUILD && dev->ops->dev_register) {
if ((err = dev->ops->dev_register(dev)) < 0)
Expand Down
11 changes: 2 additions & 9 deletions trunk/sound/core/sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ int snd_register_device(int type, struct snd_card *card, int dev,
int minor;
struct snd_minor *preg;
struct device *device = NULL;
struct class_device *class_device = NULL;

snd_assert(name, return -EINVAL);
preg = kmalloc(sizeof(struct snd_minor) + strlen(name) + 1, GFP_KERNEL);
Expand Down Expand Up @@ -273,15 +272,9 @@ int snd_register_device(int type, struct snd_card *card, int dev,
snd_minors[minor] = preg;
if (type != SNDRV_DEVICE_TYPE_CONTROL || preg->card >= cards_limit)
devfs_mk_cdev(MKDEV(major, minor), S_IFCHR | device_mode, "snd/%s", name);
if (card) {
if (card)
device = card->dev;
class_device = card->parent_device;
}
class_device = class_device_create(sound_class, class_device,
MKDEV(major, minor), device,
"%s", name);
if (type == SNDRV_DEVICE_TYPE_CONTROL)
card->parent_device = class_device;
class_device_create(sound_class, NULL, MKDEV(major, minor), device, "%s", name);

up(&sound_mutex);
return 0;
Expand Down

0 comments on commit a68d7bc

Please sign in to comment.