Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Lars-Peter Clausen and committed by
Mark Brown
47875e81 c517d838

+1 -2
+1 -2
Documentation/spi/spi-summary
··· 342 342 .driver = { 343 343 .name = "CHIP", 344 344 .owner = THIS_MODULE, 345 + .pm = &CHIP_pm_ops, 345 346 }, 346 347 347 348 .probe = CHIP_probe, 348 349 .remove = CHIP_remove, 349 - .suspend = CHIP_suspend, 350 - .resume = CHIP_resume, 351 350 }; 352 351 353 352 The driver core will automatically attempt to bind this driver to any SPI