[ALSA] Revert the nested-device patch

Modules: ALSA Core

Revert the nested-device patch to keep the compatibility with the
current HAL configuration.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai
2006-01-03 19:54:44 +01:00
committed by Jaroslav Kysela
parent 2ad5dd8dc3
commit 3e23c65883
3 changed files with 3 additions and 11 deletions

View File

@@ -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)