Drivers: scsi: 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: Adam Radford <linuxraid@lsi.com> Cc: "James E.J. Bottomley" <JBottomley@parallels.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -179,8 +179,7 @@ static struct scsi_host_template a2091_scsi_template = {
|
||||
.use_clustering = DISABLE_CLUSTERING
|
||||
};
|
||||
|
||||
static int __devinit a2091_probe(struct zorro_dev *z,
|
||||
const struct zorro_device_id *ent)
|
||||
static int a2091_probe(struct zorro_dev *z, const struct zorro_device_id *ent)
|
||||
{
|
||||
struct Scsi_Host *instance;
|
||||
int error;
|
||||
@@ -239,7 +238,7 @@ fail_alloc:
|
||||
return error;
|
||||
}
|
||||
|
||||
static void __devexit a2091_remove(struct zorro_dev *z)
|
||||
static void a2091_remove(struct zorro_dev *z)
|
||||
{
|
||||
struct Scsi_Host *instance = zorro_get_drvdata(z);
|
||||
struct a2091_hostdata *hdata = shost_priv(instance);
|
||||
@@ -251,7 +250,7 @@ static void __devexit a2091_remove(struct zorro_dev *z)
|
||||
release_mem_region(z->resource.start, 256);
|
||||
}
|
||||
|
||||
static struct zorro_device_id a2091_zorro_tbl[] __devinitdata = {
|
||||
static struct zorro_device_id a2091_zorro_tbl[] = {
|
||||
{ ZORRO_PROD_CBM_A590_A2091_1 },
|
||||
{ ZORRO_PROD_CBM_A590_A2091_2 },
|
||||
{ 0 }
|
||||
@@ -262,7 +261,7 @@ static struct zorro_driver a2091_driver = {
|
||||
.name = "a2091",
|
||||
.id_table = a2091_zorro_tbl,
|
||||
.probe = a2091_probe,
|
||||
.remove = __devexit_p(a2091_remove),
|
||||
.remove = a2091_remove,
|
||||
};
|
||||
|
||||
static int __init a2091_init(void)
|
||||
|
Viittaa uudesa ongelmassa
Block a user