Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310877
b: refs/heads/master
c: 027253c
h: refs/heads/master
i:
  310875: 5c76571
v: v3
  • Loading branch information
Christian Dietrich authored and David S. Miller committed Jun 6, 2012
1 parent 59b9538 commit 51f14f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 32a527add871a51b3c06177849d18bf71e33b320
refs/heads/master: 027253c138a12b075e724f94b6cc43fd7071c14f
8 changes: 4 additions & 4 deletions trunk/drivers/ide/icside.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ static const struct ide_port_ops icside_v6_no_dma_port_ops = {
*/
static void icside_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive)
{
unsigned long cycle_time;
unsigned long cycle_time = 0;
int use_dma_info = 0;
const u8 xfer_mode = drive->dma_mode;

Expand Down Expand Up @@ -271,9 +271,9 @@ static void icside_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive)

ide_set_drivedata(drive, (void *)cycle_time);

printk("%s: %s selected (peak %dMB/s)\n", drive->name,
ide_xfer_verbose(xfer_mode),
2000 / (unsigned long)ide_get_drivedata(drive));
printk(KERN_INFO "%s: %s selected (peak %luMB/s)\n",
drive->name, ide_xfer_verbose(xfer_mode),
2000 / (cycle_time ? cycle_time : (unsigned long) -1));
}

static const struct ide_port_ops icside_v6_port_ops = {
Expand Down

0 comments on commit 51f14f6

Please sign in to comment.