block: Do away with the notion of hardsect_size
[firefly-linux-kernel-4.4.55.git] / drivers / block / mg_disk.c
index c0cd0a03f698590083759952b33a84bb3bba2c66..60de5a01e71e6ecd67b15eee29fef7d567265872 100644 (file)
@@ -996,7 +996,7 @@ static int mg_probe(struct platform_device *plat_dev)
                goto probe_err_6;
        }
        blk_queue_max_sectors(host->breq, MG_MAX_SECTS);
-       blk_queue_hardsect_size(host->breq, MG_SECTOR_SIZE);
+       blk_queue_logical_block_size(host->breq, MG_SECTOR_SIZE);
 
        init_timer(&host->timer);
        host->timer.function = mg_times_out;