diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-07-02 05:22:40 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-07-03 01:58:19 -0400 |
commit | 284e7ca75f96a18f182cce38ba76ee724fb97e16 (patch) | |
tree | c5dedd35372f9978e5f68d2c31a57ce6afdc0c87 /sound/arm | |
parent | 8bf01d8abc55eaf8e19a2d48911c8e49ee6f5bab (diff) |
ALSA: convert PM ops of platform_driver to new pm ops
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/arm')
-rw-r--r-- | sound/arm/pxa2xx-ac97.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sound/arm/pxa2xx-ac97.c b/sound/arm/pxa2xx-ac97.c index afef72c4f0d3..0d7b25e81643 100644 --- a/sound/arm/pxa2xx-ac97.c +++ b/sound/arm/pxa2xx-ac97.c | |||
@@ -108,7 +108,7 @@ static struct pxa2xx_pcm_client pxa2xx_ac97_pcm_client = { | |||
108 | 108 | ||
109 | #ifdef CONFIG_PM | 109 | #ifdef CONFIG_PM |
110 | 110 | ||
111 | static int pxa2xx_ac97_do_suspend(struct snd_card *card, pm_message_t state) | 111 | static int pxa2xx_ac97_do_suspend(struct snd_card *card) |
112 | { | 112 | { |
113 | pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data; | 113 | pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data; |
114 | 114 | ||
@@ -144,7 +144,7 @@ static int pxa2xx_ac97_suspend(struct device *dev) | |||
144 | int ret = 0; | 144 | int ret = 0; |
145 | 145 | ||
146 | if (card) | 146 | if (card) |
147 | ret = pxa2xx_ac97_do_suspend(card, PMSG_SUSPEND); | 147 | ret = pxa2xx_ac97_do_suspend(card); |
148 | 148 | ||
149 | return ret; | 149 | return ret; |
150 | } | 150 | } |
@@ -160,10 +160,7 @@ static int pxa2xx_ac97_resume(struct device *dev) | |||
160 | return ret; | 160 | return ret; |
161 | } | 161 | } |
162 | 162 | ||
163 | static const struct dev_pm_ops pxa2xx_ac97_pm_ops = { | 163 | static SIMPLE_DEV_PM_OPS(pxa2xx_ac97_pm_ops, pxa2xx_ac97_suspend, pxa2xx_ac97_resume); |
164 | .suspend = pxa2xx_ac97_suspend, | ||
165 | .resume = pxa2xx_ac97_resume, | ||
166 | }; | ||
167 | #endif | 164 | #endif |
168 | 165 | ||
169 | static int __devinit pxa2xx_ac97_probe(struct platform_device *dev) | 166 | static int __devinit pxa2xx_ac97_probe(struct platform_device *dev) |