diff options
-rw-r--r-- | drivers/ide/ide-cd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 6a9a769bffc1..ad0ab0c0a493 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c | |||
@@ -1146,8 +1146,8 @@ void ide_cdrom_update_speed(ide_drive_t *drive, u8 *buf) | |||
1146 | ide_debug_log(IDE_DBG_PROBE, "curspeed: %u, maxspeed: %u", | 1146 | ide_debug_log(IDE_DBG_PROBE, "curspeed: %u, maxspeed: %u", |
1147 | curspeed, maxspeed); | 1147 | curspeed, maxspeed); |
1148 | 1148 | ||
1149 | cd->current_speed = (curspeed + (176/2)) / 176; | 1149 | cd->current_speed = DIV_ROUND_CLOSEST(curspeed, 176); |
1150 | cd->max_speed = (maxspeed + (176/2)) / 176; | 1150 | cd->max_speed = DIV_ROUND_CLOSEST(maxspeed, 176); |
1151 | } | 1151 | } |
1152 | 1152 | ||
1153 | #define IDE_CD_CAPABILITIES \ | 1153 | #define IDE_CD_CAPABILITIES \ |