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>
This commit is contained in:
@@ -84,23 +84,8 @@ static DEFINE_PCI_DEVICE_TABLE(isci_id_table) = {
|
|||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct isci_firmware *isci_firmware;
|
|
||||||
|
|
||||||
static int __devinit isci_pci_probe(
|
|
||||||
struct pci_dev *pdev,
|
|
||||||
const struct pci_device_id *device_id_p);
|
|
||||||
|
|
||||||
static void __devexit isci_pci_remove(struct pci_dev *pdev);
|
|
||||||
|
|
||||||
MODULE_DEVICE_TABLE(pci, isci_id_table);
|
MODULE_DEVICE_TABLE(pci, isci_id_table);
|
||||||
|
|
||||||
static struct pci_driver isci_pci_driver = {
|
|
||||||
.name = DRV_NAME,
|
|
||||||
.id_table = isci_id_table,
|
|
||||||
.probe = isci_pci_probe,
|
|
||||||
.remove = __devexit_p(isci_pci_remove),
|
|
||||||
};
|
|
||||||
|
|
||||||
/* linux isci specific settings */
|
/* linux isci specific settings */
|
||||||
|
|
||||||
#if defined(CONFIG_PBG_HBA_A0)
|
#if defined(CONFIG_PBG_HBA_A0)
|
||||||
@@ -573,6 +558,13 @@ static void __devexit isci_pci_remove(struct pci_dev *pdev)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static struct pci_driver isci_pci_driver = {
|
||||||
|
.name = DRV_NAME,
|
||||||
|
.id_table = isci_id_table,
|
||||||
|
.probe = isci_pci_probe,
|
||||||
|
.remove = __devexit_p(isci_pci_remove),
|
||||||
|
};
|
||||||
|
|
||||||
static __init int isci_init(void)
|
static __init int isci_init(void)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
|
Reference in New Issue
Block a user