]> www.infradead.org Git - users/jedix/linux-maple.git/commit
virtio: Bind virtio device to device-tree node
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 27 Jul 2021 05:23:52 +0000 (10:53 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 31 Aug 2021 14:28:07 +0000 (10:28 -0400)
commitfd704f203ca15daa08d185526b10a9f4391ff408
tree04e09d05ecc66443a8251b9407d465b984ad9d81
parentdf2fd4361a56d225002e412a6d9ec8aafd6e218b
virtio: Bind virtio device to device-tree node

Bind the virtio devices with their of_node. This will help users of the
virtio devices to mention their dependencies on the device in the DT
itself. Like GPIO pin users can use the phandle of the device node, or
the node may contain more subnodes to add i2c or spi eeproms and other
users.

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/94c12705602929968477aaf27e02439eb7a7f253.1627362340.git.viresh.kumar@linaro.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio.c