]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
tty: ifx6x60: Remove unused suspend/resume callbacks
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 11 Mar 2013 17:44:52 +0000 (18:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2013 23:29:29 +0000 (16:29 -0700)
The ifx6x60 driver implements both legacy suspend/resume callbacks and
dev_pm_ops. The SPI core is going to ignore legacy suspend/resume
callbacks if a driver implements dev_pm_ops. Since the legacy suspend/resume
callbacks are empty in this case it is safe to just remove them.

Cc: Bi Chao <chao.bi@intel.com>
Cc: Chen Jun <jun.d.chen@intel.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/ifx6x60.c

index 2c77fed31a72f7d87c1c98e457699fafba95e4d0..8b1534c424afc38eb022d26d7ba70b25e6b722d4 100644 (file)
@@ -1278,30 +1278,6 @@ static void ifx_spi_spi_shutdown(struct spi_device *spi)
  * no hardware to save state for
  */
 
-/**
- *     ifx_spi_spi_suspend     -       suspend SPI on system suspend
- *     @dev: device being suspended
- *
- *     Suspend the SPI side. No action needed on Intel MID platforms, may
- *     need extending for other systems.
- */
-static int ifx_spi_spi_suspend(struct spi_device *spi, pm_message_t msg)
-{
-       return 0;
-}
-
-/**
- *     ifx_spi_spi_resume      -       resume SPI side on system resume
- *     @dev: device being suspended
- *
- *     Suspend the SPI side. No action needed on Intel MID platforms, may
- *     need extending for other systems.
- */
-static int ifx_spi_spi_resume(struct spi_device *spi)
-{
-       return 0;
-}
-
 /**
  *     ifx_spi_pm_suspend      -       suspend modem on system suspend
  *     @dev: device being suspended
@@ -1391,8 +1367,6 @@ static struct spi_driver ifx_spi_driver = {
        .probe = ifx_spi_spi_probe,
        .shutdown = ifx_spi_spi_shutdown,
        .remove = ifx_spi_spi_remove,
-       .suspend = ifx_spi_spi_suspend,
-       .resume = ifx_spi_spi_resume,
        .id_table = ifx_id_table
 };