can: mcp251x: Remove #ifdef CONFIG_PM_SLEEP
authorAlexander Shiyan <shc_work@mail.ru>
Sat, 22 Feb 2014 05:51:14 +0000 (09:51 +0400)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 6 Mar 2014 21:20:43 +0000 (22:20 +0100)
This patch removes #ifdef CONFIG_PM_SLEEP to improve compile coverage.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/mcp251x.c

index 7cc9705bfa4b7f9eafe4874589be7abccaf03e55..50aa630c7dd4fdaded13a0fe558a9501ee279efe 100644 (file)
@@ -1195,9 +1195,7 @@ static int mcp251x_can_remove(struct spi_device *spi)
        return 0;
 }
 
-#ifdef CONFIG_PM_SLEEP
-
-static int mcp251x_can_suspend(struct device *dev)
+static int __maybe_unused mcp251x_can_suspend(struct device *dev)
 {
        struct spi_device *spi = to_spi_device(dev);
        struct mcp251x_priv *priv = spi_get_drvdata(spi);
@@ -1227,7 +1225,7 @@ static int mcp251x_can_suspend(struct device *dev)
        return 0;
 }
 
-static int mcp251x_can_resume(struct device *dev)
+static int __maybe_unused mcp251x_can_resume(struct device *dev)
 {
        struct spi_device *spi = to_spi_device(dev);
        struct mcp251x_priv *priv = spi_get_drvdata(spi);
@@ -1247,7 +1245,6 @@ static int mcp251x_can_resume(struct device *dev)
        enable_irq(spi->irq);
        return 0;
 }
-#endif
 
 static SIMPLE_DEV_PM_OPS(mcp251x_can_pm_ops, mcp251x_can_suspend,
        mcp251x_can_resume);