Commit 47875e81 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Mark Brown

spi: Use PM ops instead of legacy suspend/resume

New drivers should use PM ops instead of the legacy suspend/resume
callbacks. Update the SPI device driver guide to reflect this.
Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c517d838
...@@ -342,12 +342,11 @@ SPI protocol drivers somewhat resemble platform device drivers: ...@@ -342,12 +342,11 @@ SPI protocol drivers somewhat resemble platform device drivers:
.driver = { .driver = {
.name = "CHIP", .name = "CHIP",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = &CHIP_pm_ops,
}, },
.probe = CHIP_probe, .probe = CHIP_probe,
.remove = CHIP_remove, .remove = CHIP_remove,
.suspend = CHIP_suspend,
.resume = CHIP_resume,
}; };
The driver core will automatically attempt to bind this driver to any SPI The driver core will automatically attempt to bind this driver to any SPI
......
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