platform_device_unregister(glue->core);
}
-#ifdef CONFIG_PM
static int wl1271_suspend(struct device *dev)
{
/* Tell MMC/SDIO core it's OK to power down the card
.suspend = wl1271_suspend,
.resume = wl1271_resume,
};
-#endif
static struct sdio_driver wl1271_sdio_driver = {
.name = "wl1271_sdio",
.id_table = wl1271_devices,
.probe = wl1271_probe,
.remove = wl1271_remove,
-#ifdef CONFIG_PM
.drv = {
- .pm = &wl1271_sdio_pm_ops,
+ .pm = pm_ptr(&wl1271_sdio_pm_ops),
},
-#endif
};
module_sdio_driver(wl1271_sdio_driver);