aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/pmcraid.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/pmcraid.c')
-rw-r--r--drivers/scsi/pmcraid.c31
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 */
128static struct pci_device_id pmcraid_pci_table[] __devinitdata = { 128static 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 */
4821static int __devinit 4821static int pmcraid_allocate_cmd_blocks(struct pmcraid_instance *pinstance)
4822pmcraid_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 */
4858static int __devinit 4857static int pmcraid_allocate_control_blocks(struct pmcraid_instance *pinstance)
4859pmcraid_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 */
4925static int __devinit 4923static int pmcraid_allocate_host_rrqs(struct pmcraid_instance *pinstance)
4926pmcraid_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 */
5065static int __devinit 5062static int pmcraid_allocate_config_buffers(struct pmcraid_instance *pinstance)
5066pmcraid_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 */
5184static int __devinit pmcraid_init_buffers(struct pmcraid_instance *pinstance) 5180static 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 */
5284static int __devinit pmcraid_init_instance( 5280static 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 */
5445static void __devexit pmcraid_remove(struct pci_dev *pdev) 5438static 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 */
5886static int __devinit pmcraid_probe( 5879static 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;