Skip to content

Commit

Permalink
virtio_blk: add missing __dev{init,exit} markings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mike Frysinger authored and Rusty Russell committed Jun 12, 2009
1 parent 9fa29b9 commit 98e9444
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/block/virtio_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -395,7 +395,7 @@ static int virtblk_probe(struct virtio_device *vdev)
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;

Expand Down

0 comments on commit 98e9444

Please sign in to comment.