|
@@ -780,6 +780,7 @@ static const struct block_device_operations mg_disk_ops = {
|
|
.getgeo = mg_getgeo
|
|
.getgeo = mg_getgeo
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+#ifdef CONFIG_PM_SLEEP
|
|
static int mg_suspend(struct device *dev)
|
|
static int mg_suspend(struct device *dev)
|
|
{
|
|
{
|
|
struct mg_drv_data *prv_data = dev->platform_data;
|
|
struct mg_drv_data *prv_data = dev->platform_data;
|
|
@@ -824,6 +825,7 @@ static int mg_resume(struct device *dev)
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
static SIMPLE_DEV_PM_OPS(mg_pm, mg_suspend, mg_resume);
|
|
static SIMPLE_DEV_PM_OPS(mg_pm, mg_suspend, mg_resume);
|
|
|
|
|