aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorNick Bowler <[email protected]>2024-07-11 03:54:17 +0000
committerMichael Ellerman <[email protected]>2024-07-11 07:32:31 +0000
commitfd748e177194ebcbbaf98df75152a30e08230cc6 (patch)
treefc4aea51c960b823d12be1ed641b6be122c2f0a7 /rust/helpers.c
parentpowerpc: Check only single values are passed to CPU/MMU feature checks (diff)
downloadkernel-fd748e177194ebcbbaf98df75152a30e08230cc6.tar.gz
kernel-fd748e177194ebcbbaf98df75152a30e08230cc6.zip
macintosh/therm_windtunnel: fix module unload.
The of_device_unregister call in therm_windtunnel's module_exit procedure does not fully reverse the effects of of_platform_device_create in the module_init prodedure. Once you unload this module, it is impossible to load it ever again since only the first of_platform_device_create call on the fan node succeeds. This driver predates first git commit, and it turns out back then of_platform_device_create worked differently than it does today. So this is actually an old regression. The appropriate function to undo of_platform_device_create now appears to be of_platform_device_destroy, and switching to use this makes it possible to unload and load the module as expected. Signed-off-by: Nick Bowler <[email protected]> Fixes: c6e126de43e7 ("of: Keep track of populated platform devices") Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions