staging: mt7621-mmc: Remove code checking for old kernel versions
authorChristian Lütke-Stetzkamp <christian@lkamp.de>
Wed, 4 Apr 2018 20:15:34 +0000 (22:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 13:34:02 +0000 (15:34 +0200)
Remove code, that is checking for old kernel versions, leaving only
the case for current versions.

Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-mmc/sd.c

index 065d1b34c25875dbc8a166c9da52269bf316e1a1..85ecb1290afde2d0f91d7a1765950157ec908bb3 100644 (file)
@@ -2749,12 +2749,8 @@ static int msdc_drv_probe(struct platform_device *pdev)
                mmc->caps |= MMC_CAP_NEEDS_POLL;
 
        /* MMC core transfer sizes tunable parameters */
-#if LINUX_VERSION_CODE > KERNEL_VERSION(3, 10, 0)
        mmc->max_segs      = MAX_HW_SGMTS;
-#else
-       mmc->max_hw_segs   = MAX_HW_SGMTS;
-       mmc->max_phys_segs = MAX_PHY_SGMTS;
-#endif
+
        mmc->max_seg_size  = MAX_SGMT_SZ;
        mmc->max_blk_size  = HOST_MAX_BLKSZ;
        mmc->max_req_size  = MAX_REQ_SZ;