提交 98e94444 编写于 作者: M Mike Frysinger 提交者: Rusty Russell

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: NMike Frysinger <vapier@gentoo.org>
Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
上级 9fa29b9d
...@@ -254,7 +254,7 @@ static int index_to_minor(int index) ...@@ -254,7 +254,7 @@ static int index_to_minor(int index)
return index << PART_BITS; 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; struct virtio_blk *vblk;
int err; int err;
...@@ -395,7 +395,7 @@ static int virtblk_probe(struct virtio_device *vdev) ...@@ -395,7 +395,7 @@ static int virtblk_probe(struct virtio_device *vdev)
return err; 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; struct virtio_blk *vblk = vdev->priv;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册