Commit 07aecea7 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Nathan Scott

[PATCH] ide-cd: incorrect use of sector_div

The recent change to ide-cd using sector div is passing
the wrong type to do_div().
parent 82e8290d
......@@ -1344,7 +1344,7 @@ static ide_startstop_t cdrom_seek_intr (ide_drive_t *drive)
static ide_startstop_t cdrom_start_seek_continuation (ide_drive_t *drive)
{
struct request *rq = HWGROUP(drive)->rq;
int frame = rq->sector;
sector_t frame = rq->sector;
sector_div(frame, queue_hardsect_size(drive->queue) >> SECTOR_BITS);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment