blob: ac630edc47dee6344f9bab83f7b64964c9ea2369 [file] [log] [blame]
--- a/drivers/net/wireless/libertas/if_spi.c
+++ b/drivers/net/wireless/libertas/if_spi.c
@@ -1244,6 +1244,7 @@ static int libertas_spi_remove(struct sp
return 0;
}
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
static int if_spi_suspend(struct device *dev)
{
struct spi_device *spi = to_spi_device(dev);
@@ -1277,6 +1278,7 @@ static const struct dev_pm_ops if_spi_pm
.suspend = if_spi_suspend,
.resume = if_spi_resume,
};
+#endif
static struct spi_driver libertas_spi_driver = {
.probe = if_spi_probe,
@@ -1284,7 +1286,9 @@ static struct spi_driver libertas_spi_dr
.driver = {
.name = "libertas_spi",
.owner = THIS_MODULE,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
.pm = &if_spi_pm_ops,
+#endif
},
};