virtcons_remove is called on device unplug. Mark with __devexit_p. Signed-off-by: Amit Shah <amit.shah@xxxxxxxxxx> --- drivers/char/virtio_console.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index 92ae3f8..a34f40e 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c @@ -1585,7 +1585,7 @@ fail: return err; } -static void virtcons_remove(struct virtio_device *vdev) +static void __devexit virtcons_remove(struct virtio_device *vdev) { struct ports_device *portdev; struct port *port, *port2; @@ -1631,7 +1631,7 @@ static struct virtio_driver virtio_console = { .driver.owner = THIS_MODULE, .id_table = id_table, .probe = virtcons_probe, - .remove = virtcons_remove, + .remove = __devexit_p(virtcons_remove), .config_changed = config_intr, }; -- 1.7.2.2 _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/virtualization