diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c index ad18e14043c57b5ae52bb9015efb8e7588cbcfdc..c6f7fcfb9d672f47fb585fc035a1ee9f74f9642d 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);