summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2026-04-24 13:24:00 +0300
committerDanilo Krummrich <dakr@kernel.org>2026-05-04 23:05:03 +0300
commit30c878ed169983190f77940594f8ba8948debe6b (patch)
tree0ca1bf470148ca48d414accee069fcba2a272628 /include/linux
parent627e28455578d2faef6552cd15d241b20e27e423 (diff)
downloadlinux-30c878ed169983190f77940594f8ba8948debe6b.tar.xz
isa: switch to dynamic root device
Driver core expects devices to be dynamically allocated and will, for example, complain loudly if a device that lacks a release function is ever freed. Use root_device_register() to allocate and register the root device instead of open coding using a static device. Note that this also fixes a reference leak in case device_register() fails which may be flagged by static checkers. Signed-off-by: Johan Hovold <johan@kernel.org> Acked-by: William Breathitt Gray <wbg@kernel.org> Link: https://patch.msgid.link/20260424102400.2615677-1-johan@kernel.org Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions