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:
@@ -305,7 +305,7 @@ static struct pci_driver megaraid_pci_driver = {
|
||||
.name = "megaraid",
|
||||
.id_table = pci_id_table_g,
|
||||
.probe = megaraid_probe_one,
|
||||
.remove = __devexit_p(megaraid_detach_one),
|
||||
.remove = megaraid_detach_one,
|
||||
.shutdown = megaraid_mbox_shutdown,
|
||||
};
|
||||
|
||||
@@ -434,7 +434,7 @@ megaraid_exit(void)
|
||||
* This routine should be called whenever a new adapter is detected by the
|
||||
* PCI hotplug susbsystem.
|
||||
*/
|
||||
static int __devinit
|
||||
static int
|
||||
megaraid_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
|
||||
{
|
||||
adapter_t *adapter;
|
||||
@@ -735,7 +735,7 @@ megaraid_io_detach(adapter_t *adapter)
|
||||
* - Allocate memory required for all the commands
|
||||
* - Use internal library of FW routines, build up complete soft state
|
||||
*/
|
||||
static int __devinit
|
||||
static int
|
||||
megaraid_init_mbox(adapter_t *adapter)
|
||||
{
|
||||
struct pci_dev *pdev;
|
||||
|
@@ -3972,8 +3972,8 @@ fail_set_dma_mask:
|
||||
* @pdev: PCI device structure
|
||||
* @id: PCI ids of supported hotplugged adapter
|
||||
*/
|
||||
static int __devinit
|
||||
megasas_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
|
||||
static int megasas_probe_one(struct pci_dev *pdev,
|
||||
const struct pci_device_id *id)
|
||||
{
|
||||
int rval, pos, i, j;
|
||||
struct Scsi_Host *host;
|
||||
@@ -4525,7 +4525,7 @@ fail_ready_state:
|
||||
* megasas_detach_one - PCI hot"un"plug entry point
|
||||
* @pdev: PCI device structure
|
||||
*/
|
||||
static void __devexit megasas_detach_one(struct pci_dev *pdev)
|
||||
static void megasas_detach_one(struct pci_dev *pdev)
|
||||
{
|
||||
int i;
|
||||
struct Scsi_Host *host;
|
||||
@@ -5119,7 +5119,7 @@ static struct pci_driver megasas_pci_driver = {
|
||||
.name = "megaraid_sas",
|
||||
.id_table = megasas_pci_table,
|
||||
.probe = megasas_probe_one,
|
||||
.remove = __devexit_p(megasas_detach_one),
|
||||
.remove = megasas_detach_one,
|
||||
.suspend = megasas_suspend,
|
||||
.resume = megasas_resume,
|
||||
.shutdown = megasas_shutdown,
|
||||
|
Reference in New Issue
Block a user