diff options
Diffstat (limited to 'drivers/block/virtio_blk.c')
-rw-r--r-- | drivers/block/virtio_blk.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c index 0bdde8fba397..9d8409c02082 100644 --- a/drivers/block/virtio_blk.c +++ b/drivers/block/virtio_blk.c | |||
@@ -696,7 +696,7 @@ static const struct device_attribute dev_attr_cache_type_rw = | |||
696 | __ATTR(cache_type, S_IRUGO|S_IWUSR, | 696 | __ATTR(cache_type, S_IRUGO|S_IWUSR, |
697 | virtblk_cache_type_show, virtblk_cache_type_store); | 697 | virtblk_cache_type_show, virtblk_cache_type_store); |
698 | 698 | ||
699 | static int __devinit virtblk_probe(struct virtio_device *vdev) | 699 | static int virtblk_probe(struct virtio_device *vdev) |
700 | { | 700 | { |
701 | struct virtio_blk *vblk; | 701 | struct virtio_blk *vblk; |
702 | struct request_queue *q; | 702 | struct request_queue *q; |
@@ -885,7 +885,7 @@ out: | |||
885 | return err; | 885 | return err; |
886 | } | 886 | } |
887 | 887 | ||
888 | static void __devexit virtblk_remove(struct virtio_device *vdev) | 888 | static void virtblk_remove(struct virtio_device *vdev) |
889 | { | 889 | { |
890 | struct virtio_blk *vblk = vdev->priv; | 890 | struct virtio_blk *vblk = vdev->priv; |
891 | int index = vblk->index; | 891 | int index = vblk->index; |
@@ -961,19 +961,14 @@ static unsigned int features[] = { | |||
961 | VIRTIO_BLK_F_WCE, VIRTIO_BLK_F_TOPOLOGY, VIRTIO_BLK_F_CONFIG_WCE | 961 | VIRTIO_BLK_F_WCE, VIRTIO_BLK_F_TOPOLOGY, VIRTIO_BLK_F_CONFIG_WCE |
962 | }; | 962 | }; |
963 | 963 | ||
964 | /* | 964 | static struct virtio_driver virtio_blk = { |
965 | * virtio_blk causes spurious section mismatch warning by | ||
966 | * simultaneously referring to a __devinit and a __devexit function. | ||
967 | * Use __refdata to avoid this warning. | ||
968 | */ | ||
969 | static struct virtio_driver __refdata virtio_blk = { | ||
970 | .feature_table = features, | 965 | .feature_table = features, |
971 | .feature_table_size = ARRAY_SIZE(features), | 966 | .feature_table_size = ARRAY_SIZE(features), |
972 | .driver.name = KBUILD_MODNAME, | 967 | .driver.name = KBUILD_MODNAME, |
973 | .driver.owner = THIS_MODULE, | 968 | .driver.owner = THIS_MODULE, |
974 | .id_table = id_table, | 969 | .id_table = id_table, |
975 | .probe = virtblk_probe, | 970 | .probe = virtblk_probe, |
976 | .remove = __devexit_p(virtblk_remove), | 971 | .remove = virtblk_remove, |
977 | .config_changed = virtblk_config_changed, | 972 | .config_changed = virtblk_config_changed, |
978 | #ifdef CONFIG_PM | 973 | #ifdef CONFIG_PM |
979 | .freeze = virtblk_freeze, | 974 | .freeze = virtblk_freeze, |