diff mbox

[1/2] spi: Use PM ops instead of legacy suspend/resume

Message ID 1425822998-30487-1-git-send-email-lars@metafoo.de (mailing list archive)
State Accepted
Commit 47875e81476bda8a9bd4875eb281b46e33027d42
Headers show

Commit Message

Lars-Peter Clausen March 8, 2015, 1:56 p.m. UTC
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>
---
 Documentation/spi/spi-summary | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Mark Brown March 8, 2015, 7:58 p.m. UTC | #1
On Sun, Mar 08, 2015 at 02:56:37PM +0100, Lars-Peter Clausen wrote:
> New drivers should use PM ops instead of the legacy suspend/resume
> callbacks. Update the SPI device driver guide to reflect this.

Applied both, thanks.
diff mbox

Patch

diff --git a/Documentation/spi/spi-summary b/Documentation/spi/spi-summary
index d29734b..d1824b3 100644
--- a/Documentation/spi/spi-summary
+++ b/Documentation/spi/spi-summary
@@ -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