aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sym53c8xx_2/sym_glue.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/sym53c8xx_2/sym_glue.c')
-rw-r--r--drivers/scsi/sym53c8xx_2/sym_glue.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/drivers/scsi/sym53c8xx_2/sym_glue.c b/drivers/scsi/sym53c8xx_2/sym_glue.c
index e2b8e68b57e7..599568299fbe 100644
--- a/drivers/scsi/sym53c8xx_2/sym_glue.c
+++ b/drivers/scsi/sym53c8xx_2/sym_glue.c
@@ -1284,8 +1284,7 @@ static int sym53c8xx_proc_info(struct Scsi_Host *shost, char *buffer,
1284 * sym_free_resources() should be used instead of this function after calling 1284 * sym_free_resources() should be used instead of this function after calling
1285 * sym_attach(). 1285 * sym_attach().
1286 */ 1286 */
1287static void __devinit 1287static void sym_iounmap_device(struct sym_device *device)
1288sym_iounmap_device(struct sym_device *device)
1289{ 1288{
1290 if (device->s.ioaddr) 1289 if (device->s.ioaddr)
1291 pci_iounmap(device->pdev, device->s.ioaddr); 1290 pci_iounmap(device->pdev, device->s.ioaddr);
@@ -1325,8 +1324,8 @@ static void sym_free_resources(struct sym_hcb *np, struct pci_dev *pdev,
1325 * If all is OK, install interrupt handling and 1324 * If all is OK, install interrupt handling and
1326 * start the timer daemon. 1325 * start the timer daemon.
1327 */ 1326 */
1328static struct Scsi_Host * __devinit sym_attach(struct scsi_host_template *tpnt, 1327static struct Scsi_Host *sym_attach(struct scsi_host_template *tpnt, int unit,
1329 int unit, struct sym_device *dev) 1328 struct sym_device *dev)
1330{ 1329{
1331 struct sym_data *sym_data; 1330 struct sym_data *sym_data;
1332 struct sym_hcb *np = NULL; 1331 struct sym_hcb *np = NULL;
@@ -1481,7 +1480,7 @@ static struct Scsi_Host * __devinit sym_attach(struct scsi_host_template *tpnt,
1481 * Detect and try to read SYMBIOS and TEKRAM NVRAM. 1480 * Detect and try to read SYMBIOS and TEKRAM NVRAM.
1482 */ 1481 */
1483#if SYM_CONF_NVRAM_SUPPORT 1482#if SYM_CONF_NVRAM_SUPPORT
1484static void __devinit sym_get_nvram(struct sym_device *devp, struct sym_nvram *nvp) 1483static void sym_get_nvram(struct sym_device *devp, struct sym_nvram *nvp)
1485{ 1484{
1486 devp->nvram = nvp; 1485 devp->nvram = nvp;
1487 nvp->type = 0; 1486 nvp->type = 0;
@@ -1494,7 +1493,7 @@ static inline void sym_get_nvram(struct sym_device *devp, struct sym_nvram *nvp)
1494} 1493}
1495#endif /* SYM_CONF_NVRAM_SUPPORT */ 1494#endif /* SYM_CONF_NVRAM_SUPPORT */
1496 1495
1497static int __devinit sym_check_supported(struct sym_device *device) 1496static int sym_check_supported(struct sym_device *device)
1498{ 1497{
1499 struct sym_chip *chip; 1498 struct sym_chip *chip;
1500 struct pci_dev *pdev = device->pdev; 1499 struct pci_dev *pdev = device->pdev;
@@ -1531,7 +1530,7 @@ static int __devinit sym_check_supported(struct sym_device *device)
1531 * Ignore Symbios chips controlled by various RAID controllers. 1530 * Ignore Symbios chips controlled by various RAID controllers.
1532 * These controllers set value 0x52414944 at RAM end - 16. 1531 * These controllers set value 0x52414944 at RAM end - 16.
1533 */ 1532 */
1534static int __devinit sym_check_raid(struct sym_device *device) 1533static int sym_check_raid(struct sym_device *device)
1535{ 1534{
1536 unsigned int ram_size, ram_val; 1535 unsigned int ram_size, ram_val;
1537 1536
@@ -1552,7 +1551,7 @@ static int __devinit sym_check_raid(struct sym_device *device)
1552 return -ENODEV; 1551 return -ENODEV;
1553} 1552}
1554 1553
1555static int __devinit sym_set_workarounds(struct sym_device *device) 1554static int sym_set_workarounds(struct sym_device *device)
1556{ 1555{
1557 struct sym_chip *chip = &device->chip; 1556 struct sym_chip *chip = &device->chip;
1558 struct pci_dev *pdev = device->pdev; 1557 struct pci_dev *pdev = device->pdev;
@@ -1602,8 +1601,7 @@ static int __devinit sym_set_workarounds(struct sym_device *device)
1602/* 1601/*
1603 * Map HBA registers and on-chip SRAM (if present). 1602 * Map HBA registers and on-chip SRAM (if present).
1604 */ 1603 */
1605static int __devinit 1604static int sym_iomap_device(struct sym_device *device)
1606sym_iomap_device(struct sym_device *device)
1607{ 1605{
1608 struct pci_dev *pdev = device->pdev; 1606 struct pci_dev *pdev = device->pdev;
1609 struct pci_bus_region bus_addr; 1607 struct pci_bus_region bus_addr;
@@ -1751,8 +1749,7 @@ static struct scsi_host_template sym2_template = {
1751 1749
1752static int attach_count; 1750static int attach_count;
1753 1751
1754static int __devinit sym2_probe(struct pci_dev *pdev, 1752static int sym2_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
1755 const struct pci_device_id *ent)
1756{ 1753{
1757 struct sym_device sym_dev; 1754 struct sym_device sym_dev;
1758 struct sym_nvram nvram; 1755 struct sym_nvram nvram;
@@ -2077,7 +2074,7 @@ static struct spi_function_template sym2_transport_functions = {
2077 .get_signalling = sym2_get_signalling, 2074 .get_signalling = sym2_get_signalling,
2078}; 2075};
2079 2076
2080static struct pci_device_id sym2_id_table[] __devinitdata = { 2077static struct pci_device_id sym2_id_table[] = {
2081 { PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_NCR_53C810, 2078 { PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_NCR_53C810,
2082 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, 2079 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL },
2083 { PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_NCR_53C820, 2080 { PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_NCR_53C820,