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/swim.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/swim.c')
-rw-r--r-- | drivers/block/swim.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/block/swim.c b/drivers/block/swim.c index 6d5a914b9619..765fa2b3d337 100644 --- a/drivers/block/swim.c +++ b/drivers/block/swim.c | |||
@@ -788,8 +788,7 @@ static struct kobject *floppy_find(dev_t dev, int *part, void *data) | |||
788 | return get_disk(swd->unit[drive].disk); | 788 | return get_disk(swd->unit[drive].disk); |
789 | } | 789 | } |
790 | 790 | ||
791 | static int __devinit swim_add_floppy(struct swim_priv *swd, | 791 | static int swim_add_floppy(struct swim_priv *swd, enum drive_location location) |
792 | enum drive_location location) | ||
793 | { | 792 | { |
794 | struct floppy_state *fs = &swd->unit[swd->floppy_count]; | 793 | struct floppy_state *fs = &swd->unit[swd->floppy_count]; |
795 | struct swim __iomem *base = swd->base; | 794 | struct swim __iomem *base = swd->base; |
@@ -812,7 +811,7 @@ static int __devinit swim_add_floppy(struct swim_priv *swd, | |||
812 | return 0; | 811 | return 0; |
813 | } | 812 | } |
814 | 813 | ||
815 | static int __devinit swim_floppy_init(struct swim_priv *swd) | 814 | static int swim_floppy_init(struct swim_priv *swd) |
816 | { | 815 | { |
817 | int err; | 816 | int err; |
818 | int drive; | 817 | int drive; |
@@ -875,7 +874,7 @@ exit_put_disks: | |||
875 | return err; | 874 | return err; |
876 | } | 875 | } |
877 | 876 | ||
878 | static int __devinit swim_probe(struct platform_device *dev) | 877 | static int swim_probe(struct platform_device *dev) |
879 | { | 878 | { |
880 | struct resource *res; | 879 | struct resource *res; |
881 | struct swim __iomem *swim_base; | 880 | struct swim __iomem *swim_base; |
@@ -936,7 +935,7 @@ out: | |||
936 | return ret; | 935 | return ret; |
937 | } | 936 | } |
938 | 937 | ||
939 | static int __devexit swim_remove(struct platform_device *dev) | 938 | static int swim_remove(struct platform_device *dev) |
940 | { | 939 | { |
941 | struct swim_priv *swd = platform_get_drvdata(dev); | 940 | struct swim_priv *swd = platform_get_drvdata(dev); |
942 | int drive; | 941 | int drive; |
@@ -972,7 +971,7 @@ static int __devexit swim_remove(struct platform_device *dev) | |||
972 | 971 | ||
973 | static struct platform_driver swim_driver = { | 972 | static struct platform_driver swim_driver = { |
974 | .probe = swim_probe, | 973 | .probe = swim_probe, |
975 | .remove = __devexit_p(swim_remove), | 974 | .remove = swim_remove, |
976 | .driver = { | 975 | .driver = { |
977 | .name = CARDNAME, | 976 | .name = CARDNAME, |
978 | .owner = THIS_MODULE, | 977 | .owner = THIS_MODULE, |