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>
Sun, 5 Sep 2021 20:23:08 +0000 (16:23 -0400)
commit694a1116b405d887c893525a6766b390989c8606
treef5afb024ce854daf798baa6c28bb5fe420744d13
parentd5a8680dfab0547a4ecd708b1fe9de48598a6757
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