]> git.ipfire.org Git - thirdparty/linux.git/commit
vdpa_sim_net: switch to dynamic root device
authorJohan Hovold <johan@kernel.org>
Fri, 24 Apr 2026 10:47:03 +0000 (12:47 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 10 Jun 2026 06:17:00 +0000 (02:17 -0400)
commite13fc46b4dd1e8f8bb913229dc307bf1ce08ea77
tree22588c3ce3d51c8b0099df72893c73c9dece57e7
parent4f3da991b55c940cedb563836fe11ddfb3ff9248
vdpa_sim_net: 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.

Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20260424104703.2619093-3-johan@kernel.org>
drivers/vdpa/vdpa_sim/vdpa_sim_net.c