diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 18:13:49 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:15 -0500 |
commit | 8d85fce77edfc22f1d6dbf78e3af723b4b556f3d (patch) | |
tree | a3429b9b9e94e92854bf2b64569b6bf064fd477a /drivers/block/virtio_blk.c | |
parent | 0f58a01ddd5e8177255705ba15e64c3b74d67993 (diff) |
Drivers: block: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
markings need to be removed.
This change removes the use of __devinit, __devexit_p, __devinitdata,
__devinitconst, and __devexit from these drivers.
Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.
Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Mike Miller <mike.miller@hp.com>
Cc: Chirag Kantharia <chirag.kantharia@hp.com>
Cc: Geoff Levand <geoff@infradead.org>
Cc: Jim Paris <jim@jtan.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Matthew Wilcox <matthew.r.wilcox@intel.com>
Cc: Keith Busch <keith.busch@intel.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: NeilBrown <neilb@suse.de>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Tao Guo <Tao.Guo@emc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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, |