virtio/console: verify device has config space
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 12 Jan 2015 14:23:37 +0000 (16:23 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Jan 2015 05:58:46 +0000 (16:28 +1030)
commit011f0e7a6944855436fb29c7a7e6c3c89c95f8fb
tree20513dda94177be3306922cbfc10a9a9679223e9
parenta4379fd841cc1af60ef495b8e5598b1f7327ec0c
virtio/console: verify device has config space

Some devices might not implement config space access
(e.g. remoteproc used not to - before 3.9).
virtio/console needs config space access so make it
fail gracefully if not there.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c