Commit 868a471
committed
ACPI: thermal: Do not attach private data to ACPI handles
The ACPI thermal driver uses acpi_bus_attach_private_data() to attach
the thermal zone object to the ACPI handle of the thermal zone and
acpi_bus_detach_private_data() to clean that up, but it never uses
acpi_bus_get_private_data() to retrieve that object.
Drop the unneded acpi_bus_attach_private_data() and
acpi_bus_detach_private_data() calls from the ACPI thermal driver and
clean up the related code.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Zhang Rui <rui.zhang@intel.com>1 parent dabc621 commit 868a471
1 file changed
Lines changed: 1 addition & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
742 | 742 | | |
743 | 743 | | |
744 | 744 | | |
745 | | - | |
746 | 745 | | |
747 | 746 | | |
748 | 747 | | |
| |||
775 | 774 | | |
776 | 775 | | |
777 | 776 | | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | 777 | | |
786 | 778 | | |
787 | | - | |
| 779 | + | |
788 | 780 | | |
789 | 781 | | |
790 | 782 | | |
791 | 783 | | |
792 | 784 | | |
793 | 785 | | |
794 | | - | |
795 | | - | |
796 | 786 | | |
797 | 787 | | |
798 | 788 | | |
| |||
806 | 796 | | |
807 | 797 | | |
808 | 798 | | |
809 | | - | |
810 | 799 | | |
811 | 800 | | |
812 | 801 | | |
| |||
0 commit comments