aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/tmscsim.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/tmscsim.c')
-rw-r--r--drivers/scsi/tmscsim.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/drivers/scsi/tmscsim.c b/drivers/scsi/tmscsim.c
index a1baccce05f0..9327f5fcec4e 100644
--- a/drivers/scsi/tmscsim.c
+++ b/drivers/scsi/tmscsim.c
@@ -2219,7 +2219,7 @@ static struct scsi_host_template driver_template = {
2219 * 2219 *
2220 **********************************************************************/ 2220 **********************************************************************/
2221 2221
2222static void __devinit dc390_eeprom_prepare_read(struct pci_dev *pdev, u8 cmd) 2222static void dc390_eeprom_prepare_read(struct pci_dev *pdev, u8 cmd)
2223{ 2223{
2224 u8 carryFlag = 1, j = 0x80, bval; 2224 u8 carryFlag = 1, j = 0x80, bval;
2225 int i; 2225 int i;
@@ -2242,7 +2242,7 @@ static void __devinit dc390_eeprom_prepare_read(struct pci_dev *pdev, u8 cmd)
2242 } 2242 }
2243} 2243}
2244 2244
2245static u16 __devinit dc390_eeprom_get_data(struct pci_dev *pdev) 2245static u16 dc390_eeprom_get_data(struct pci_dev *pdev)
2246{ 2246{
2247 int i; 2247 int i;
2248 u16 wval = 0; 2248 u16 wval = 0;
@@ -2264,7 +2264,7 @@ static u16 __devinit dc390_eeprom_get_data(struct pci_dev *pdev)
2264 return wval; 2264 return wval;
2265} 2265}
2266 2266
2267static void __devinit dc390_read_eeprom(struct pci_dev *pdev, u16 *ptr) 2267static void dc390_read_eeprom(struct pci_dev *pdev, u16 *ptr)
2268{ 2268{
2269 u8 cmd = EEPROM_READ, i; 2269 u8 cmd = EEPROM_READ, i;
2270 2270
@@ -2282,7 +2282,7 @@ static void __devinit dc390_read_eeprom(struct pci_dev *pdev, u16 *ptr)
2282} 2282}
2283 2283
2284/* Override EEprom values with explicitly set values */ 2284/* Override EEprom values with explicitly set values */
2285static void __devinit dc390_eeprom_override(u8 index) 2285static void dc390_eeprom_override(u8 index)
2286{ 2286{
2287 u8 *ptr = (u8 *) dc390_eepromBuf[index], id; 2287 u8 *ptr = (u8 *) dc390_eepromBuf[index], id;
2288 2288
@@ -2305,7 +2305,7 @@ static void __devinit dc390_eeprom_override(u8 index)
2305 } 2305 }
2306} 2306}
2307 2307
2308static int __devinitdata tmscsim_def[] = { 2308static int tmscsim_def[] = {
2309 7, 2309 7,
2310 0 /* 10MHz */, 2310 0 /* 10MHz */,
2311 PARITY_CHK_ | SEND_START_ | EN_DISCONNECT_ | SYNC_NEGO_ | TAG_QUEUEING_, 2311 PARITY_CHK_ | SEND_START_ | EN_DISCONNECT_ | SYNC_NEGO_ | TAG_QUEUEING_,
@@ -2315,7 +2315,7 @@ static int __devinitdata tmscsim_def[] = {
2315}; 2315};
2316 2316
2317/* Copy defaults over set values where missing */ 2317/* Copy defaults over set values where missing */
2318static void __devinit dc390_fill_with_defaults (void) 2318static void dc390_fill_with_defaults (void)
2319{ 2319{
2320 int i; 2320 int i;
2321 2321
@@ -2335,7 +2335,7 @@ static void __devinit dc390_fill_with_defaults (void)
2335 tmscsim[5] = 180; 2335 tmscsim[5] = 180;
2336} 2336}
2337 2337
2338static void __devinit dc390_check_eeprom(struct pci_dev *pdev, u8 index) 2338static void dc390_check_eeprom(struct pci_dev *pdev, u8 index)
2339{ 2339{
2340 u8 interpd[] = {1, 3, 5, 10, 16, 30, 60, 120}; 2340 u8 interpd[] = {1, 3, 5, 10, 16, 30, 60, 120};
2341 u8 EEbuf[128]; 2341 u8 EEbuf[128];
@@ -2372,7 +2372,7 @@ static void __devinit dc390_check_eeprom(struct pci_dev *pdev, u8 index)
2372 } 2372 }
2373} 2373}
2374 2374
2375static void __devinit dc390_init_hw(struct dc390_acb *pACB, u8 index) 2375static void dc390_init_hw(struct dc390_acb *pACB, u8 index)
2376{ 2376{
2377 struct Scsi_Host *shost = pACB->pScsiHost; 2377 struct Scsi_Host *shost = pACB->pScsiHost;
2378 u8 dstate; 2378 u8 dstate;
@@ -2422,8 +2422,7 @@ static void __devinit dc390_init_hw(struct dc390_acb *pACB, u8 index)
2422 DC390_write8(DMA_Status, dstate); 2422 DC390_write8(DMA_Status, dstate);
2423} 2423}
2424 2424
2425static int __devinit dc390_probe_one(struct pci_dev *pdev, 2425static int dc390_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
2426 const struct pci_device_id *id)
2427{ 2426{
2428 struct dc390_acb *pACB; 2427 struct dc390_acb *pACB;
2429 struct Scsi_Host *shost; 2428 struct Scsi_Host *shost;
@@ -2532,7 +2531,7 @@ static int __devinit dc390_probe_one(struct pci_dev *pdev,
2532 * 2531 *
2533 * @dev: The PCI device to remove. 2532 * @dev: The PCI device to remove.
2534 */ 2533 */
2535static void __devexit dc390_remove_one(struct pci_dev *dev) 2534static void dc390_remove_one(struct pci_dev *dev)
2536{ 2535{
2537 struct Scsi_Host *scsi_host = pci_get_drvdata(dev); 2536 struct Scsi_Host *scsi_host = pci_get_drvdata(dev);
2538 unsigned long iflags; 2537 unsigned long iflags;
@@ -2568,7 +2567,7 @@ static struct pci_driver dc390_driver = {
2568 .name = "tmscsim", 2567 .name = "tmscsim",
2569 .id_table = tmscsim_pci_tbl, 2568 .id_table = tmscsim_pci_tbl,
2570 .probe = dc390_probe_one, 2569 .probe = dc390_probe_one,
2571 .remove = __devexit_p(dc390_remove_one), 2570 .remove = dc390_remove_one,
2572}; 2571};
2573 2572
2574static int __init dc390_module_init(void) 2573static int __init dc390_module_init(void)