Commit b6b5669
platform/x86: wmi: Use devres to disable the WMI device
Use devm_add_action_or_reset() to disable the WMI device instead of
manually calling wmi_method_enable() to prepare for future changes
inside the WMI data block handlign code.
The reason for this is that we have to make sure that all
devres-managed resources are released first because some might still
want to access the underlying WMI device.
Because devres-managed resources are not released during shutdown
we still have to manually disable the WMI device in this case.
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20250216193251.866125-6-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>1 parent 0fcc316 commit b6b5669
1 file changed
+22
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
821 | 821 | | |
822 | 822 | | |
823 | 823 | | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
824 | 832 | | |
825 | 833 | | |
826 | 834 | | |
827 | 835 | | |
828 | | - | |
| 836 | + | |
829 | 837 | | |
830 | 838 | | |
831 | 839 | | |
| |||
847 | 855 | | |
848 | 856 | | |
849 | 857 | | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
850 | 866 | | |
851 | 867 | | |
852 | 868 | | |
853 | | - | |
854 | | - | |
855 | | - | |
856 | | - | |
| 869 | + | |
857 | 870 | | |
858 | | - | |
859 | 871 | | |
860 | 872 | | |
861 | 873 | | |
| |||
876 | 888 | | |
877 | 889 | | |
878 | 890 | | |
879 | | - | |
880 | | - | |
881 | | - | |
882 | 891 | | |
883 | 892 | | |
884 | 893 | | |
| |||
902 | 911 | | |
903 | 912 | | |
904 | 913 | | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
905 | 918 | | |
906 | 919 | | |
907 | 920 | | |
| |||
0 commit comments