pxa2xx-ac97.c (e3ee1e123183ca9847e74b7b8e2694c9e3b817a6) | pxa2xx-ac97.c (bd7dd77c2a05c530684eea2e3af16449ae9c5d52) |
---|---|
1/* 2 * linux/sound/pxa2xx-ac97.c -- AC97 support for the Intel PXA2xx chip. 3 * 4 * Author: Nicolas Pitre 5 * Created: Dec 02, 2004 6 * Copyright: MontaVista Software Inc. 7 * 8 * This program is free software; you can redistribute it and/or modify --- 159 unchanged lines hidden (view full) --- 168 169static int __devinit pxa2xx_ac97_probe(struct platform_device *dev) 170{ 171 struct snd_card *card; 172 struct snd_ac97_bus *ac97_bus; 173 struct snd_ac97_template ac97_template; 174 int ret; 175 | 1/* 2 * linux/sound/pxa2xx-ac97.c -- AC97 support for the Intel PXA2xx chip. 3 * 4 * Author: Nicolas Pitre 5 * Created: Dec 02, 2004 6 * Copyright: MontaVista Software Inc. 7 * 8 * This program is free software; you can redistribute it and/or modify --- 159 unchanged lines hidden (view full) --- 168 169static int __devinit pxa2xx_ac97_probe(struct platform_device *dev) 170{ 171 struct snd_card *card; 172 struct snd_ac97_bus *ac97_bus; 173 struct snd_ac97_template ac97_template; 174 int ret; 175 |
176 ret = -ENOMEM; 177 card = snd_card_new(SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1, 178 THIS_MODULE, 0); 179 if (!card) | 176 ret = snd_card_create(SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1, 177 THIS_MODULE, 0, &card); 178 if (ret < 0) |
180 goto err; 181 182 card->dev = &dev->dev; 183 strncpy(card->driver, dev->dev.driver->name, sizeof(card->driver)); 184 185 ret = pxa2xx_pcm_new(card, &pxa2xx_ac97_pcm_client, &pxa2xx_ac97_pcm); 186 if (ret) 187 goto err; --- 74 unchanged lines hidden --- | 179 goto err; 180 181 card->dev = &dev->dev; 182 strncpy(card->driver, dev->dev.driver->name, sizeof(card->driver)); 183 184 ret = pxa2xx_pcm_new(card, &pxa2xx_ac97_pcm_client, &pxa2xx_ac97_pcm); 185 if (ret) 186 goto err; --- 74 unchanged lines hidden --- |