Commit 93afe8b
committed
ACPI: TAD: Use dev_groups in struct device_driver
Instead of creating and removing the device sysfs attributes directly
during probe and remove of the driver, respectively, use dev_groups in
struct device_driver to point to the attribute definitions and let the
core take care of creating and removing them.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/2836803.mvXUDI8C0e@rafael.j.wysocki1 parent 6db176e commit 93afe8b
1 file changed
Lines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
589 | 594 | | |
590 | 595 | | |
591 | 596 | | |
| |||
663 | 668 | | |
664 | 669 | | |
665 | 670 | | |
666 | | - | |
667 | | - | |
668 | 671 | | |
669 | 672 | | |
670 | 673 | | |
| |||
687 | 690 | | |
688 | 691 | | |
689 | 692 | | |
690 | | - | |
691 | 693 | | |
692 | 694 | | |
693 | 695 | | |
| |||
731 | 733 | | |
732 | 734 | | |
733 | 735 | | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | 736 | | |
741 | 737 | | |
742 | 738 | | |
| |||
752 | 748 | | |
753 | 749 | | |
754 | 750 | | |
| 751 | + | |
755 | 752 | | |
756 | 753 | | |
757 | 754 | | |
| |||
0 commit comments