diff options
| author | Johan Hovold <johan@kernel.org> | 2026-04-24 13:24:00 +0300 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-05-04 23:05:03 +0300 |
| commit | 30c878ed169983190f77940594f8ba8948debe6b (patch) | |
| tree | 0ca1bf470148ca48d414accee069fcba2a272628 /include/linux | |
| parent | 627e28455578d2faef6552cd15d241b20e27e423 (diff) | |
| download | linux-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
