aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/init.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2011-03-26 19:30:06 -0400
committerDan Williams <dan.j.williams@intel.com>2011-07-03 07:00:36 -0400
commitf942f32ea05eff727c41e1a1112cab305b836377 (patch)
treec9a074fce9e34e13d7a3189844cc1667e26a0c6a /drivers/scsi/isci/init.c
parent09d7da135b34bc74a7996b5db373521557ddf3d4 (diff)
isci: reorder init to cleanup unneeded declarations
Just move isci_pci_driver below the function definitions and delete the declarations. A couple other whitespace fixups, and unused symbol deletions. Reported-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/init.c')
-rw-r--r--drivers/scsi/isci/init.c26
1 files changed, 9 insertions, 17 deletions
diff --git a/drivers/scsi/isci/init.c b/drivers/scsi/isci/init.c
index 1b04b9c117a4..5e63ae6a75d1 100644
--- a/drivers/scsi/isci/init.c
+++ b/drivers/scsi/isci/init.c
@@ -84,23 +84,8 @@ static DEFINE_PCI_DEVICE_TABLE(isci_id_table) = {
84 {} 84 {}
85}; 85};
86 86
87struct isci_firmware *isci_firmware;
88
89static int __devinit isci_pci_probe(
90 struct pci_dev *pdev,
91 const struct pci_device_id *device_id_p);
92
93static void __devexit isci_pci_remove(struct pci_dev *pdev);
94
95MODULE_DEVICE_TABLE(pci, isci_id_table); 87MODULE_DEVICE_TABLE(pci, isci_id_table);
96 88
97static struct pci_driver isci_pci_driver = {
98 .name = DRV_NAME,
99 .id_table = isci_id_table,
100 .probe = isci_pci_probe,
101 .remove = __devexit_p(isci_pci_remove),
102};
103
104/* linux isci specific settings */ 89/* linux isci specific settings */
105 90
106#if defined(CONFIG_PBG_HBA_A0) 91#if defined(CONFIG_PBG_HBA_A0)
@@ -339,7 +324,7 @@ static int num_controllers(struct pci_dev *pdev)
339 */ 324 */
340 resource_size_t scu_bar_size = pci_resource_len(pdev, SCI_SCU_BAR*2); 325 resource_size_t scu_bar_size = pci_resource_len(pdev, SCI_SCU_BAR*2);
341 resource_size_t smu_bar_size = pci_resource_len(pdev, SCI_SMU_BAR*2); 326 resource_size_t smu_bar_size = pci_resource_len(pdev, SCI_SMU_BAR*2);
342 327
343 if (scu_bar_size >= SCI_SCU_BAR_SIZE*SCI_MAX_CONTROLLERS && 328 if (scu_bar_size >= SCI_SCU_BAR_SIZE*SCI_MAX_CONTROLLERS &&
344 smu_bar_size >= SCI_SMU_BAR_SIZE*SCI_MAX_CONTROLLERS) 329 smu_bar_size >= SCI_SMU_BAR_SIZE*SCI_MAX_CONTROLLERS)
345 return SCI_MAX_CONTROLLERS; 330 return SCI_MAX_CONTROLLERS;
@@ -484,7 +469,7 @@ static void check_si_rev(struct pci_dev *pdev)
484 dev_info(&pdev->dev, "driver configured for %s silicon (rev: %d)\n", 469 dev_info(&pdev->dev, "driver configured for %s silicon (rev: %d)\n",
485 isci_si_rev == ISCI_SI_REVA0 ? "A0" : 470 isci_si_rev == ISCI_SI_REVA0 ? "A0" :
486 isci_si_rev == ISCI_SI_REVA2 ? "A2" : "B0", pdev->revision); 471 isci_si_rev == ISCI_SI_REVA2 ? "A2" : "B0", pdev->revision);
487 472
488} 473}
489 474
490static int __devinit isci_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) 475static int __devinit isci_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
@@ -573,6 +558,13 @@ static void __devexit isci_pci_remove(struct pci_dev *pdev)
573 } 558 }
574} 559}
575 560
561static struct pci_driver isci_pci_driver = {
562 .name = DRV_NAME,
563 .id_table = isci_id_table,
564 .probe = isci_pci_probe,
565 .remove = __devexit_p(isci_pci_remove),
566};
567
576static __init int isci_init(void) 568static __init int isci_init(void)
577{ 569{
578 int err; 570 int err;