diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-05-18 03:39:09 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-06-12 08:46:39 -0400 |
commit | 98e94444748e9af93423d1fab90543e75569a58c (patch) | |
tree | d775c68462a2f9d478a45f2f7de916dfe2e6833f /drivers/block/virtio_blk.c | |
parent | 9fa29b9df32ba4db055f3977933cd0c1b8fe67cd (diff) |
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>
Diffstat (limited to 'drivers/block/virtio_blk.c')
-rw-r--r-- | 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 07d8e595e51f..43db3ea15b54 100644 --- a/drivers/block/virtio_blk.c +++ b/drivers/block/virtio_blk.c | |||
@@ -254,7 +254,7 @@ static int index_to_minor(int index) | |||
254 | return index << PART_BITS; | 254 | return index << PART_BITS; |
255 | } | 255 | } |
256 | 256 | ||
257 | static int virtblk_probe(struct virtio_device *vdev) | 257 | static int __devinit virtblk_probe(struct virtio_device *vdev) |
258 | { | 258 | { |
259 | struct virtio_blk *vblk; | 259 | struct virtio_blk *vblk; |
260 | int err; | 260 | int err; |
@@ -395,7 +395,7 @@ out: | |||
395 | return err; | 395 | return err; |
396 | } | 396 | } |
397 | 397 | ||
398 | static void virtblk_remove(struct virtio_device *vdev) | 398 | static void __devexit virtblk_remove(struct virtio_device *vdev) |
399 | { | 399 | { |
400 | struct virtio_blk *vblk = vdev->priv; | 400 | struct virtio_blk *vblk = vdev->priv; |
401 | 401 | ||