|
@@ -138,17 +138,6 @@ static struct snd_soc_card byt_rt5640_card = {
|
|
.num_dapm_routes = ARRAY_SIZE(byt_rt5640_audio_map),
|
|
.num_dapm_routes = ARRAY_SIZE(byt_rt5640_audio_map),
|
|
};
|
|
};
|
|
|
|
|
|
-#ifdef CONFIG_PM_SLEEP
|
|
|
|
-static const struct dev_pm_ops byt_rt5640_pm_ops = {
|
|
|
|
- .suspend = snd_soc_suspend,
|
|
|
|
- .resume = snd_soc_resume,
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
-#define BYT_RT5640_PM_OPS (&byt_rt5640_pm_ops)
|
|
|
|
-#else
|
|
|
|
-#define BYT_RT5640_PM_OPS NULL
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
static int byt_rt5640_probe(struct platform_device *pdev)
|
|
static int byt_rt5640_probe(struct platform_device *pdev)
|
|
{
|
|
{
|
|
struct snd_soc_card *card = &byt_rt5640_card;
|
|
struct snd_soc_card *card = &byt_rt5640_card;
|
|
@@ -162,7 +151,7 @@ static struct platform_driver byt_rt5640_audio = {
|
|
.driver = {
|
|
.driver = {
|
|
.name = "byt-rt5640",
|
|
.name = "byt-rt5640",
|
|
.owner = THIS_MODULE,
|
|
.owner = THIS_MODULE,
|
|
- .pm = BYT_RT5640_PM_OPS,
|
|
|
|
|
|
+ .pm = &snd_soc_pm_ops,
|
|
},
|
|
},
|
|
};
|
|
};
|
|
module_platform_driver(byt_rt5640_audio)
|
|
module_platform_driver(byt_rt5640_audio)
|