diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 16:08:55 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:01 -0500 |
commit | 6f039790510fd630ff348efe8c4802dbaa041fba (patch) | |
tree | bf99ab35c78f689a40f3057537209be5f7ca88d6 /drivers/scsi/pmcraid.c | |
parent | 48c68c4f1b542444f175a9e136febcecf3e704d8 (diff) |
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>
Diffstat (limited to 'drivers/scsi/pmcraid.c')
-rw-r--r-- | drivers/scsi/pmcraid.c | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index af763eab2039..b46f5e906837 100644 --- a/drivers/scsi/pmcraid.c +++ b/drivers/scsi/pmcraid.c | |||
@@ -125,7 +125,7 @@ static struct pmcraid_chip_details pmcraid_chip_cfg[] = { | |||
125 | /* | 125 | /* |
126 | * PCI device ids supported by pmcraid driver | 126 | * PCI device ids supported by pmcraid driver |
127 | */ | 127 | */ |
128 | static struct pci_device_id pmcraid_pci_table[] __devinitdata = { | 128 | static struct pci_device_id pmcraid_pci_table[] = { |
129 | { PCI_DEVICE(PCI_VENDOR_ID_PMC, PCI_DEVICE_ID_PMC_MAXRAID), | 129 | { PCI_DEVICE(PCI_VENDOR_ID_PMC, PCI_DEVICE_ID_PMC_MAXRAID), |
130 | 0, 0, (kernel_ulong_t)&pmcraid_chip_cfg[0] | 130 | 0, 0, (kernel_ulong_t)&pmcraid_chip_cfg[0] |
131 | }, | 131 | }, |
@@ -4818,8 +4818,7 @@ pmcraid_release_control_blocks( | |||
4818 | * Return Value | 4818 | * Return Value |
4819 | * 0 in case of success; -ENOMEM in case of failure | 4819 | * 0 in case of success; -ENOMEM in case of failure |
4820 | */ | 4820 | */ |
4821 | static int __devinit | 4821 | static int pmcraid_allocate_cmd_blocks(struct pmcraid_instance *pinstance) |
4822 | pmcraid_allocate_cmd_blocks(struct pmcraid_instance *pinstance) | ||
4823 | { | 4822 | { |
4824 | int i; | 4823 | int i; |
4825 | 4824 | ||
@@ -4855,8 +4854,7 @@ pmcraid_allocate_cmd_blocks(struct pmcraid_instance *pinstance) | |||
4855 | * Return Value | 4854 | * Return Value |
4856 | * 0 in case it can allocate all control blocks, otherwise -ENOMEM | 4855 | * 0 in case it can allocate all control blocks, otherwise -ENOMEM |
4857 | */ | 4856 | */ |
4858 | static int __devinit | 4857 | static int pmcraid_allocate_control_blocks(struct pmcraid_instance *pinstance) |
4859 | pmcraid_allocate_control_blocks(struct pmcraid_instance *pinstance) | ||
4860 | { | 4858 | { |
4861 | int i; | 4859 | int i; |
4862 | 4860 | ||
@@ -4922,8 +4920,7 @@ pmcraid_release_host_rrqs(struct pmcraid_instance *pinstance, int maxindex) | |||
4922 | * Return value | 4920 | * Return value |
4923 | * 0 hrrq buffers are allocated, -ENOMEM otherwise. | 4921 | * 0 hrrq buffers are allocated, -ENOMEM otherwise. |
4924 | */ | 4922 | */ |
4925 | static int __devinit | 4923 | static int pmcraid_allocate_host_rrqs(struct pmcraid_instance *pinstance) |
4926 | pmcraid_allocate_host_rrqs(struct pmcraid_instance *pinstance) | ||
4927 | { | 4924 | { |
4928 | int i, buffer_size; | 4925 | int i, buffer_size; |
4929 | 4926 | ||
@@ -5062,8 +5059,7 @@ static void pmcraid_release_config_buffers(struct pmcraid_instance *pinstance) | |||
5062 | * Return Value | 5059 | * Return Value |
5063 | * 0 for successful allocation, -ENOMEM for any failure | 5060 | * 0 for successful allocation, -ENOMEM for any failure |
5064 | */ | 5061 | */ |
5065 | static int __devinit | 5062 | static int pmcraid_allocate_config_buffers(struct pmcraid_instance *pinstance) |
5066 | pmcraid_allocate_config_buffers(struct pmcraid_instance *pinstance) | ||
5067 | { | 5063 | { |
5068 | int i; | 5064 | int i; |
5069 | 5065 | ||
@@ -5181,7 +5177,7 @@ static void pmcraid_release_buffers(struct pmcraid_instance *pinstance) | |||
5181 | * Return Value | 5177 | * Return Value |
5182 | * 0 in case all of the blocks are allocated, -ENOMEM otherwise. | 5178 | * 0 in case all of the blocks are allocated, -ENOMEM otherwise. |
5183 | */ | 5179 | */ |
5184 | static int __devinit pmcraid_init_buffers(struct pmcraid_instance *pinstance) | 5180 | static int pmcraid_init_buffers(struct pmcraid_instance *pinstance) |
5185 | { | 5181 | { |
5186 | int i; | 5182 | int i; |
5187 | 5183 | ||
@@ -5281,11 +5277,8 @@ static void pmcraid_reinit_buffers(struct pmcraid_instance *pinstance) | |||
5281 | * Return Value | 5277 | * Return Value |
5282 | * 0 on success, non-zero in case of any failure | 5278 | * 0 on success, non-zero in case of any failure |
5283 | */ | 5279 | */ |
5284 | static int __devinit pmcraid_init_instance( | 5280 | static int pmcraid_init_instance(struct pci_dev *pdev, struct Scsi_Host *host, |
5285 | struct pci_dev *pdev, | 5281 | void __iomem *mapped_pci_addr) |
5286 | struct Scsi_Host *host, | ||
5287 | void __iomem *mapped_pci_addr | ||
5288 | ) | ||
5289 | { | 5282 | { |
5290 | struct pmcraid_instance *pinstance = | 5283 | struct pmcraid_instance *pinstance = |
5291 | (struct pmcraid_instance *)host->hostdata; | 5284 | (struct pmcraid_instance *)host->hostdata; |
@@ -5442,7 +5435,7 @@ static void pmcraid_release_chrdev(struct pmcraid_instance *pinstance) | |||
5442 | * Return value | 5435 | * Return value |
5443 | * none | 5436 | * none |
5444 | */ | 5437 | */ |
5445 | static void __devexit pmcraid_remove(struct pci_dev *pdev) | 5438 | static void pmcraid_remove(struct pci_dev *pdev) |
5446 | { | 5439 | { |
5447 | struct pmcraid_instance *pinstance = pci_get_drvdata(pdev); | 5440 | struct pmcraid_instance *pinstance = pci_get_drvdata(pdev); |
5448 | 5441 | ||
@@ -5883,10 +5876,8 @@ static void pmcraid_querycfg(struct pmcraid_cmd *cmd) | |||
5883 | * returns 0 if the device is claimed and successfully configured. | 5876 | * returns 0 if the device is claimed and successfully configured. |
5884 | * returns non-zero error code in case of any failure | 5877 | * returns non-zero error code in case of any failure |
5885 | */ | 5878 | */ |
5886 | static int __devinit pmcraid_probe( | 5879 | static int pmcraid_probe(struct pci_dev *pdev, |
5887 | struct pci_dev *pdev, | 5880 | const struct pci_device_id *dev_id) |
5888 | const struct pci_device_id *dev_id | ||
5889 | ) | ||
5890 | { | 5881 | { |
5891 | struct pmcraid_instance *pinstance; | 5882 | struct pmcraid_instance *pinstance; |
5892 | struct Scsi_Host *host; | 5883 | struct Scsi_Host *host; |