Skip to content

Commit 47875e8

Browse files
larsclausenbroonie
authored andcommitted
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: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent c517d83 commit 47875e8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎Documentation/spi/spi-summary‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,12 +342,11 @@ SPI protocol drivers somewhat resemble platform device drivers:
342342
.driver = {
343343
.name = "CHIP",
344344
.owner = THIS_MODULE,
345+
.pm = &CHIP_pm_ops,
345346
},
346347

347348
.probe = CHIP_probe,
348349
.remove = CHIP_remove,
349-
.suspend = CHIP_suspend,
350-
.resume = CHIP_resume,
351350
};
352351

353352
The driver core will automatically attempt to bind this driver to any SPI

0 commit comments

Comments
 (0)