virtio_blk: add missing __dev{init,exit} markings

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, June 12, 2009 - 11:00 am

Gitweb:     http://git.kernel.org/linus/98e94444748e9af93423d1fab90543e75569a58c
Commit:     98e94444748e9af93423d1fab90543e75569a58c
Parent:     9fa29b9df32ba4db055f3977933cd0c1b8fe67cd
Author:     Mike Frysinger <vapier@gentoo.org>
AuthorDate: Mon May 18 03:39:09 2009 -0400
Committer:  Rusty Russell <rusty@rustcorp.com.au>
CommitDate: Fri Jun 12 22:16:39 2009 +0930

    virtio_blk: add missing __dev{init,exit} markings
    
    The remove member of the virtio_driver structure uses __devexit_p(), so
    the remove function itself should be marked with __devexit.  And where
    there be __devexit on the remove, so is there __devinit on the probe.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
 drivers/block/virtio_blk.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index 07d8e59..43db3ea 100644
--- a/drivers/block/virtio_blk.c
+++ b/drivers/block/virtio_blk.c
@@ -254,7 +254,7 @@ static int index_to_minor(int index)
 	return index << PART_BITS;
 }
 
-static int virtblk_probe(struct virtio_device *vdev)
+static int __devinit virtblk_probe(struct virtio_device *vdev)
 {
 	struct virtio_blk *vblk;
 	int err;
@@ -395,7 +395,7 @@ out:
 	return err;
 }
 
-static void virtblk_remove(struct virtio_device *vdev)
+static void __devexit virtblk_remove(struct virtio_device *vdev)
 {
 	struct virtio_blk *vblk = vdev->priv;
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
virtio_blk: add missing __dev{init,exit} markings, Linux Kernel Mailing ..., (Fri Jun 12, 11:00 am)