diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/aic7xxx/aic79xx_core.c | 2 | ||||
-rw-r--r-- | drivers/scsi/pmcraid.c | 2 | ||||
-rw-r--r-- | drivers/staging/speakup/speakup_dtlk.c | 7 |
3 files changed, 6 insertions, 5 deletions
diff --git a/drivers/scsi/aic7xxx/aic79xx_core.c b/drivers/scsi/aic7xxx/aic79xx_core.c index 0bcacf71aef8..97f2accd3dbb 100644 --- a/drivers/scsi/aic7xxx/aic79xx_core.c +++ b/drivers/scsi/aic7xxx/aic79xx_core.c | |||
@@ -1298,7 +1298,7 @@ rescan_fifos: | |||
1298 | 1298 | ||
1299 | /* | 1299 | /* |
1300 | * Wait for any inprogress DMA to complete and clear DMA state | 1300 | * Wait for any inprogress DMA to complete and clear DMA state |
1301 | * if this if for an SCB in the qinfifo. | 1301 | * if this is for an SCB in the qinfifo. |
1302 | */ | 1302 | */ |
1303 | while (((ccscbctl = ahd_inb(ahd, CCSCBCTL)) & (CCARREN|CCSCBEN)) != 0) { | 1303 | while (((ccscbctl = ahd_inb(ahd, CCSCBCTL)) & (CCARREN|CCSCBEN)) != 0) { |
1304 | 1304 | ||
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index 8c27b6a77ec4..85510086a36c 100644 --- a/drivers/scsi/pmcraid.c +++ b/drivers/scsi/pmcraid.c | |||
@@ -4223,7 +4223,7 @@ static ssize_t pmcraid_show_adapter_id( | |||
4223 | static struct device_attribute pmcraid_adapter_id_attr = { | 4223 | static struct device_attribute pmcraid_adapter_id_attr = { |
4224 | .attr = { | 4224 | .attr = { |
4225 | .name = "adapter_id", | 4225 | .name = "adapter_id", |
4226 | .mode = S_IRUGO | S_IWUSR, | 4226 | .mode = S_IRUGO, |
4227 | }, | 4227 | }, |
4228 | .show = pmcraid_show_adapter_id, | 4228 | .show = pmcraid_show_adapter_id, |
4229 | }; | 4229 | }; |
diff --git a/drivers/staging/speakup/speakup_dtlk.c b/drivers/staging/speakup/speakup_dtlk.c index 4e059ea78d4c..89592c0b9151 100644 --- a/drivers/staging/speakup/speakup_dtlk.c +++ b/drivers/staging/speakup/speakup_dtlk.c | |||
@@ -325,7 +325,7 @@ static struct synth_settings *synth_interrogate(struct spk_synth *synth) | |||
325 | 325 | ||
326 | static int synth_probe(struct spk_synth *synth) | 326 | static int synth_probe(struct spk_synth *synth) |
327 | { | 327 | { |
328 | unsigned int port_val = 0; | 328 | unsigned int port_val = 0; |
329 | int i = 0; | 329 | int i = 0; |
330 | struct synth_settings *sp; | 330 | struct synth_settings *sp; |
331 | 331 | ||
@@ -361,7 +361,8 @@ static int synth_probe(struct spk_synth *synth) | |||
361 | port_val &= 0xfbff; | 361 | port_val &= 0xfbff; |
362 | if (port_val != 0x107f) { | 362 | if (port_val != 0x107f) { |
363 | pr_info("DoubleTalk PC: not found\n"); | 363 | pr_info("DoubleTalk PC: not found\n"); |
364 | synth_release_region(synth_lpc, SYNTH_IO_EXTENT); | 364 | if (synth_lpc) |
365 | synth_release_region(synth_lpc, SYNTH_IO_EXTENT); | ||
365 | return -ENODEV; | 366 | return -ENODEV; |
366 | } | 367 | } |
367 | while (inw_p(synth_lpc) != 0x147f) | 368 | while (inw_p(synth_lpc) != 0x147f) |
@@ -369,7 +370,7 @@ static int synth_probe(struct spk_synth *synth) | |||
369 | sp = synth_interrogate(synth); | 370 | sp = synth_interrogate(synth); |
370 | pr_info("%s: %03x-%03x, ROM ver %s, s/n %u, driver: %s\n", | 371 | pr_info("%s: %03x-%03x, ROM ver %s, s/n %u, driver: %s\n", |
371 | synth->long_name, synth_lpc, synth_lpc+SYNTH_IO_EXTENT - 1, | 372 | synth->long_name, synth_lpc, synth_lpc+SYNTH_IO_EXTENT - 1, |
372 | sp->rom_version, sp->serial_number, synth->version); | 373 | sp->rom_version, sp->serial_number, synth->version); |
373 | synth->alive = 1; | 374 | synth->alive = 1; |
374 | return 0; | 375 | return 0; |
375 | } | 376 | } |