]> git.karo-electronics.de Git - linux-beck.git/blobdiff - sound/soc/codecs/wm8776.c
ASoC: Remove snd_soc_suspend_device()
[linux-beck.git] / sound / soc / codecs / wm8776.c
index a9829aa26e53591a0574d44f884c5fccee5f0b29..a0bbb28eed75239841b0e3a0aef8cdb6934fb0d7 100644 (file)
@@ -616,21 +616,6 @@ static int __devexit wm8776_spi_remove(struct spi_device *spi)
        return 0;
 }
 
-#ifdef CONFIG_PM
-static int wm8776_spi_suspend(struct spi_device *spi, pm_message_t msg)
-{
-       return snd_soc_suspend_device(&spi->dev);
-}
-
-static int wm8776_spi_resume(struct spi_device *spi)
-{
-       return snd_soc_resume_device(&spi->dev);
-}
-#else
-#define wm8776_spi_suspend NULL
-#define wm8776_spi_resume NULL
-#endif
-
 static struct spi_driver wm8776_spi_driver = {
        .driver = {
                .name   = "wm8776",
@@ -638,8 +623,6 @@ static struct spi_driver wm8776_spi_driver = {
                .owner  = THIS_MODULE,
        },
        .probe          = wm8776_spi_probe,
-       .suspend        = wm8776_spi_suspend,
-       .resume         = wm8776_spi_resume,
        .remove         = __devexit_p(wm8776_spi_remove),
 };
 #endif /* CONFIG_SPI_MASTER */
@@ -673,21 +656,6 @@ static __devexit int wm8776_i2c_remove(struct i2c_client *client)
        return 0;
 }
 
-#ifdef CONFIG_PM
-static int wm8776_i2c_suspend(struct i2c_client *i2c, pm_message_t msg)
-{
-       return snd_soc_suspend_device(&i2c->dev);
-}
-
-static int wm8776_i2c_resume(struct i2c_client *i2c)
-{
-       return snd_soc_resume_device(&i2c->dev);
-}
-#else
-#define wm8776_i2c_suspend NULL
-#define wm8776_i2c_resume NULL
-#endif
-
 static const struct i2c_device_id wm8776_i2c_id[] = {
        { "wm8776", 0 },
        { }
@@ -701,8 +669,6 @@ static struct i2c_driver wm8776_i2c_driver = {
        },
        .probe =    wm8776_i2c_probe,
        .remove =   __devexit_p(wm8776_i2c_remove),
-       .suspend =  wm8776_i2c_suspend,
-       .resume =   wm8776_i2c_resume,
        .id_table = wm8776_i2c_id,
 };
 #endif