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>
This commit is contained in:
parent
0f58a01ddd
commit
8d85fce77e
11 changed files with 87 additions and 100 deletions
|
@ -788,8 +788,7 @@ static struct kobject *floppy_find(dev_t dev, int *part, void *data)
|
|||
return get_disk(swd->unit[drive].disk);
|
||||
}
|
||||
|
||||
static int __devinit swim_add_floppy(struct swim_priv *swd,
|
||||
enum drive_location location)
|
||||
static int swim_add_floppy(struct swim_priv *swd, enum drive_location location)
|
||||
{
|
||||
struct floppy_state *fs = &swd->unit[swd->floppy_count];
|
||||
struct swim __iomem *base = swd->base;
|
||||
|
@ -812,7 +811,7 @@ static int __devinit swim_add_floppy(struct swim_priv *swd,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int __devinit swim_floppy_init(struct swim_priv *swd)
|
||||
static int swim_floppy_init(struct swim_priv *swd)
|
||||
{
|
||||
int err;
|
||||
int drive;
|
||||
|
@ -875,7 +874,7 @@ exit_put_disks:
|
|||
return err;
|
||||
}
|
||||
|
||||
static int __devinit swim_probe(struct platform_device *dev)
|
||||
static int swim_probe(struct platform_device *dev)
|
||||
{
|
||||
struct resource *res;
|
||||
struct swim __iomem *swim_base;
|
||||
|
@ -936,7 +935,7 @@ out:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int __devexit swim_remove(struct platform_device *dev)
|
||||
static int swim_remove(struct platform_device *dev)
|
||||
{
|
||||
struct swim_priv *swd = platform_get_drvdata(dev);
|
||||
int drive;
|
||||
|
@ -972,7 +971,7 @@ static int __devexit swim_remove(struct platform_device *dev)
|
|||
|
||||
static struct platform_driver swim_driver = {
|
||||
.probe = swim_probe,
|
||||
.remove = __devexit_p(swim_remove),
|
||||
.remove = swim_remove,
|
||||
.driver = {
|
||||
.name = CARDNAME,
|
||||
.owner = THIS_MODULE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue