From: Dirk Behme Date: Fri, 20 Jan 2006 19:03:56 +0000 (-0800) Subject: ARM: OMAP: Remove errors and warnings and make omap-aic23.c compile again X-Git-Tag: v2.6.16-omap1~119 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7f21b282bf6c5de1c99012850b0f69946b3723f4;p=linux-2.6-omap-h63xx.git ARM: OMAP: Remove errors and warnings and make omap-aic23.c compile again sound/arm/omap-aic23.c:661: error: structure has no member named pm_private_data' sound/arm/omap-aic23.c:772: warning: implicit declaration of function snd_card_set_pm_callback' Note: Needs "Fix clk_get_usecount() warning" patch Signed-off-by: Dirk Behme Signed-off-by: Tony Lindgren --- diff --git a/sound/arm/omap-aic23.c b/sound/arm/omap-aic23.c index 34c07f86d0b..c92e24534f4 100644 --- a/sound/arm/omap-aic23.c +++ b/sound/arm/omap-aic23.c @@ -59,6 +59,7 @@ #include #include #include +#include #include #include @@ -658,7 +659,7 @@ static int __init snd_card_omap_aic23_pcm(struct snd_card_omap_aic23 static int snd_omap_aic23_suspend(snd_card_t * card, pm_message_t state) { - struct snd_card_omap_aic23 *chip = card->pm_private_data; + struct snd_card_omap_aic23 *chip = card->private_data; ADEBUG(); if (chip->card->power_state != SNDRV_CTL_POWER_D3hot) { @@ -677,7 +678,7 @@ static int snd_omap_aic23_suspend(snd_card_t * card, pm_message_t state) */ static int snd_omap_aic23_resume(snd_card_t * card) { - struct snd_card_omap_aic23 *chip = card->pm_private_data; + struct snd_card_omap_aic23 *chip = card->private_data; ADEBUG(); if (chip->card->power_state != SNDRV_CTL_POWER_D0) { @@ -860,14 +861,13 @@ static int __init snd_omap_aic23_probe(struct platform_device *pdev) if ((err = snd_card_omap_aic23_pcm(omap_aic23, 0)) < 0) goto nodev; - snd_card_set_pm_callback(card, snd_omap_aic23_suspend, - snd_omap_aic23_resume, omap_aic23); - strcpy(card->driver, "AIC23"); strcpy(card->shortname, "OSK AIC23"); sprintf(card->longname, "OMAP OSK with AIC23"); snd_omap_init_mixer(); + + snd_card_set_dev(card, &pdev->dev); if ((err = snd_card_register(card)) == 0) { printk(KERN_INFO "OSK audio support initialized\n");