Go to file
Nick Bowler f9eec0556e macintosh/therm_windtunnel: fix module unload.
BugLink: https://bugs.launchpad.net/bugs/2078388

[ Upstream commit fd748e177194ebcbbaf98df75152a30e08230cc6 ]

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 <nbowler@draconx.ca>
Fixes: c6e126de43 ("of: Keep track of populated platform devices")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240711035428.16696-1-nbowler@draconx.ca
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Koichiro Den <koichiro.den@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2024-09-27 10:50:13 +02:00
Documentation ASoC: dt-bindings: rt5645: add cbj sleeve gpio property 2024-07-05 10:51:55 +02:00
LICENSES
arch powerpc/xmon: Fix disassembly CPU feature checks 2024-09-27 10:50:13 +02:00
block block: prevent division by zero in blk_rq_stat_sum() 2024-06-07 15:01:41 +02:00
certs certs/blacklist_hashes.c: fix const confusion in certs blacklist 2022-08-26 11:10:49 +02:00
crypto crypto: ecrdsa - Fix module auto-load on add_key 2024-07-05 10:52:03 +02:00
debian UBUNTU: [Packaging] Remove fips-checks script 2024-03-28 15:18:45 +01:00
debian.master UBUNTU: Upstream stable to v5.4.281 2024-09-27 10:50:10 +02:00
drivers macintosh/therm_windtunnel: fix module unload. 2024-09-27 10:50:13 +02:00
fs ext4: avoid writing unitialized memory to disk in EA inodes 2024-09-27 10:50:13 +02:00
include SUNRPC: Fixup gss_status tracepoint error output 2024-09-27 10:50:13 +02:00
init init: open /initrd.image with O_LARGEFILE 2024-06-07 15:01:40 +02:00
ipc ipc: replace costly bailout check in sysvipc_find_ipc() 2023-02-24 14:01:18 +01:00
kernel perf: Prevent passing zero nr_pages to rb_alloc_aux() 2024-09-27 10:50:12 +02:00
lib mlxsw: spectrum_acl_erp: Fix object nesting warning 2024-09-27 10:50:11 +02:00
mm mm: swap: fix race between free_swap_and_cache() and swapoff() 2024-09-27 10:50:08 +02:00
net SUNRPC: avoid soft lockup when transmitting UDP to reachable server. 2024-09-27 10:50:13 +02:00
samples media: rename VFL_TYPE_GRABBER to _VIDEO 2024-06-07 15:01:29 +02:00
scripts kconfig: remove wrong expr_trans_bool() 2024-09-27 10:50:08 +02:00
security ima: Fix use-after-free on a dentry's dname.name 2024-08-28 13:31:45 +02:00
sound ASoC: max98088: Check for clk_prepare_enable() error 2024-09-27 10:50:13 +02:00
tools perf report: Fix condition in sort__sym_cmp() 2024-09-27 10:50:12 +02:00
ubuntu
usr
virt KVM: async_pf: Cleanup kvm_setup_async_pf() 2024-06-07 15:01:45 +02:00
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS iio: stx104: Move to addac subdirectory 2023-10-30 11:41:56 +01:00
Makefile Linux 5.4.281 2024-09-27 10:50:10 +02:00
README
Ubuntu.md
dropped.txt
snapcraft.yaml

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.