diff options
| author | Johan Hovold <johan@kernel.org> | 2026-04-24 12:38:30 +0200 |
|---|---|---|
| committer | Niklas Cassel <cassel@kernel.org> | 2026-04-27 11:38:16 +0200 |
| commit | 163f6494233e1679ec6fa6a4803f74ae7b1c94db (patch) | |
| tree | 489c4f2b042d1f93b9008ea8f753fe67f333cafa /scripts/dummy-tools/python3 | |
| parent | 254f49634ee16a731174d2ae34bc50bd5f45e731 (diff) | |
ata: pata_parport: switch to dynamic root device
Driver core expects devices to be dynamically allocated and will, for
example, complain loudly when no release function has been provided.
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 the unlikely event that
device_register() ever fails.
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Diffstat (limited to 'scripts/dummy-tools/python3')
0 files changed, 0 insertions, 0 deletions
