From: Martin K. Petersen Date: Sat, 23 May 2009 06:23:16 +0000 (+0200) Subject: ide-disk: fix missing max_sectors accessor function X-Git-Tag: v2.6.31-rc1~389^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b77f777b8f1c001b63e317c4ce317292ff0ff94;p=platform%2Fkernel%2Flinux-exynos.git ide-disk: fix missing max_sectors accessor function The recent move to accessor functions for querying queue limits missed an entry in ide-disk.c: drivers/ide/ide-disk.c: In function ‘ide_disk_setup’: drivers/ide/ide-disk.c:642: error: ‘struct request_queue’ has no member named ‘max_sectors’ Fix it. Signed-off-by: Martin K. Petersen Signed-off-by: Jens Axboe --- diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c index ad18e14..c6f7fcf 100644 --- a/drivers/ide/ide-disk.c +++ b/drivers/ide/ide-disk.c @@ -639,7 +639,7 @@ static void ide_disk_setup(ide_drive_t *drive) } printk(KERN_INFO "%s: max request size: %dKiB\n", drive->name, - q->max_sectors / 2); + queue_max_sectors(q) / 2); if (ata_id_is_ssd(id)) queue_flag_set_unlocked(QUEUE_FLAG_NONROT, q);