]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: virtio_console: add missing MODULE_DEVICE_TABLE() for rproc serial
authorAlexander Lobakin <alobakin@pm.me>
Tue, 23 Jun 2020 11:09:33 +0000 (11:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jul 2020 13:12:48 +0000 (15:12 +0200)
commit70e1dfd1f54fe0c323ee3a2043eb27aefe326cc3
tree609c9f4fd302dae12208df256316e1643c84f33b
parent22f4466d7cad0ed37210fdc195909a8f8cb5ca30
virtio: virtio_console: add missing MODULE_DEVICE_TABLE() for rproc serial

rproc_serial_id_table lacks an exposure to module devicetable, so
when remoteproc firmware requests VIRTIO_ID_RPROC_SERIAL, no uevent
is generated and no module autoloading occurs.
Add missing MODULE_DEVICE_TABLE() annotation and move the existing
one for VIRTIO_ID_CONSOLE right to the table itself.

Fixes: 0367806ef85f ("virtio_console: Add support for remoteproc serial")
Cc: <stable@vger.kernel.org> # v3.8+
Signed-off-by: Alexander Lobakin <alobakin@pm.me>
Reviewed-by: Amit Shah <amit@kernel.org>
Link: https://lore.kernel.org/r/x7C_CbeJtoGMy258nwAXASYz3xgFMFpyzmUvOyZzRnQrgWCREBjaqBOpAUS7ol4NnZYvSVwmTsCG0Ohyfvta-ygw6HMHcoeKK0C3QFiAO_Q=@pm.me
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/virtio_console.c