Commit f16a4210 authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Marc Kleine-Budde

can: mcp251x: Remove #ifdef CONFIG_PM_SLEEP

This patch removes #ifdef CONFIG_PM_SLEEP to improve compile coverage.
Signed-off-by: default avatarAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 1e6cacdb
...@@ -1195,9 +1195,7 @@ static int mcp251x_can_remove(struct spi_device *spi) ...@@ -1195,9 +1195,7 @@ static int mcp251x_can_remove(struct spi_device *spi)
return 0; return 0;
} }
#ifdef CONFIG_PM_SLEEP static int __maybe_unused mcp251x_can_suspend(struct device *dev)
static int mcp251x_can_suspend(struct device *dev)
{ {
struct spi_device *spi = to_spi_device(dev); struct spi_device *spi = to_spi_device(dev);
struct mcp251x_priv *priv = spi_get_drvdata(spi); struct mcp251x_priv *priv = spi_get_drvdata(spi);
...@@ -1227,7 +1225,7 @@ static int mcp251x_can_suspend(struct device *dev) ...@@ -1227,7 +1225,7 @@ static int mcp251x_can_suspend(struct device *dev)
return 0; 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 spi_device *spi = to_spi_device(dev);
struct mcp251x_priv *priv = spi_get_drvdata(spi); struct mcp251x_priv *priv = spi_get_drvdata(spi);
...@@ -1247,7 +1245,6 @@ static int mcp251x_can_resume(struct device *dev) ...@@ -1247,7 +1245,6 @@ static int mcp251x_can_resume(struct device *dev)
enable_irq(spi->irq); enable_irq(spi->irq);
return 0; return 0;
} }
#endif
static SIMPLE_DEV_PM_OPS(mcp251x_can_pm_ops, mcp251x_can_suspend, static SIMPLE_DEV_PM_OPS(mcp251x_can_pm_ops, mcp251x_can_suspend,
mcp251x_can_resume); mcp251x_can_resume);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment