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>
此提交包含在:
@@ -68,8 +68,8 @@ static struct scsi_host_template dmx3191d_driver_template = {
|
||||
.use_clustering = DISABLE_CLUSTERING,
|
||||
};
|
||||
|
||||
static int __devinit dmx3191d_probe_one(struct pci_dev *pdev,
|
||||
const struct pci_device_id *id)
|
||||
static int dmx3191d_probe_one(struct pci_dev *pdev,
|
||||
const struct pci_device_id *id)
|
||||
{
|
||||
struct Scsi_Host *shost;
|
||||
unsigned long io;
|
||||
@@ -123,7 +123,7 @@ static int __devinit dmx3191d_probe_one(struct pci_dev *pdev,
|
||||
return error;
|
||||
}
|
||||
|
||||
static void __devexit dmx3191d_remove_one(struct pci_dev *pdev)
|
||||
static void dmx3191d_remove_one(struct pci_dev *pdev)
|
||||
{
|
||||
struct Scsi_Host *shost = pci_get_drvdata(pdev);
|
||||
|
||||
@@ -150,7 +150,7 @@ static struct pci_driver dmx3191d_pci_driver = {
|
||||
.name = DMX3191D_DRIVER_NAME,
|
||||
.id_table = dmx3191d_pci_tbl,
|
||||
.probe = dmx3191d_probe_one,
|
||||
.remove = __devexit_p(dmx3191d_remove_one),
|
||||
.remove = dmx3191d_remove_one,
|
||||
};
|
||||
|
||||
static int __init dmx3191d_init(void)
|
||||
|
新增問題並參考
封鎖使用者