]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/mtd/mtd_blkdevs.c
Merge branch 'for-4.3/core' of git://git.kernel.dk/linux-block
[karo-tx-linux.git] / drivers / mtd / mtd_blkdevs.c
index 88304751eb8a9f1be47e3838d80fd4782cbf862c..44dc965a2f7c0d10d2f55245568274a59db0a1ff 100644 (file)
@@ -419,7 +419,7 @@ int add_mtd_blktrans_dev(struct mtd_blktrans_dev *new)
 
        if (tr->discard) {
                queue_flag_set_unlocked(QUEUE_FLAG_DISCARD, new->rq);
-               new->rq->limits.max_discard_sectors = UINT_MAX;
+               blk_queue_max_discard_sectors(new->rq, UINT_MAX);
        }
 
        gd->queue = new->rq;