]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
spi: Use PM ops instead of legacy suspend/resume
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 8 Mar 2015 13:56:37 +0000 (14:56 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 8 Mar 2015 19:57:55 +0000 (19:57 +0000)
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>
Documentation/spi/spi-summary

index d29734bff28c5beb38bf304b5b5d02903044d691..d1824b399b2d1d79059231a52e2552949d9ba24f 100644 (file)
@@ -342,12 +342,11 @@ SPI protocol drivers somewhat resemble platform device drivers:
                .driver = {
                        .name           = "CHIP",
                        .owner          = THIS_MODULE,
+                       .pm             = &CHIP_pm_ops,
                },
 
                .probe          = CHIP_probe,
                .remove         = CHIP_remove,
-               .suspend        = CHIP_suspend,
-               .resume         = CHIP_resume,
        };
 
 The driver core will automatically attempt to bind this driver to any SPI