Repository navigation
Commit 783ea7d
Driver Core: Rework platform suspend/resume, print warning
This patch reworks the platform driver code for legacy
suspend and resume to avoid installing callbacks in
struct device_driver. A warning is also added telling
users to update the platform driver to use dev_pm_ops.
The functions platform_legacy_suspend()/resume() directly
call suspend and resume callbacks in struct platform_driver
instead of wrapping things in platform_drv_suspend()/resume().
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>1 parent 0072578 commit 783ea7d
1 file changed
Lines changed: 12 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | 472 | | |
489 | 473 | | |
490 | 474 | | |
| |||
498 | 482 | | |
499 | 483 | | |
500 | 484 | | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
505 | 489 | | |
506 | 490 | | |
507 | 491 | | |
| |||
633 | 617 | | |
634 | 618 | | |
635 | 619 | | |
| 620 | + | |
| 621 | + | |
636 | 622 | | |
637 | 623 | | |
638 | | - | |
639 | | - | |
| 624 | + | |
| 625 | + | |
640 | 626 | | |
641 | 627 | | |
642 | 628 | | |
| |||
667 | 653 | | |
668 | 654 | | |
669 | 655 | | |
| 656 | + | |
| 657 | + | |
670 | 658 | | |
671 | 659 | | |
672 | | - | |
673 | | - | |
| 660 | + | |
| 661 | + | |
674 | 662 | | |
675 | 663 | | |
676 | 664 | | |
| |||
0 commit comments