virtio: don't fail on !of_device_is_compatible
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 13 Sep 2021 10:38:36 +0000 (06:38 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 14 Sep 2021 22:09:57 +0000 (18:09 -0400)
commit0d818706130e2f4e828c3fc028917677fac76a09
tree6e4a4d37a6fc792300e39fc2ec755d7f1c29b246
parent6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f
virtio: don't fail on !of_device_is_compatible

A recent change checking of_device_is_compatible on probe broke some
powerpc/pseries setups. Apparently there virtio devices do not have a
"compatible" property - they are matched by PCI vendor/device ids.

Let's just skip of_node setup but proceed with initialization like we
did previously.

Fixes: 694a1116b405 ("virtio: Bind virtio device to device-tree node")
Reported-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio.c