Message ID | 1425822998-30487-1-git-send-email-lars@metafoo.de (mailing list archive) |
---|---|
State | Accepted |
Commit | 47875e81476bda8a9bd4875eb281b46e33027d42 |
Headers | show |
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 --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
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(-)