mmc: dw_mmc: remove the unused blk_setting
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 6 Aug 2015 07:23:25 +0000 (16:23 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Aug 2015 10:45:27 +0000 (12:45 +0200)
"blk_setting" doesn't use anywhere.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/host/dw_mmc.c
include/linux/mmc/dw_mmc.h

index de88e640097e61c2ea659be696be1bf3e17f58ca..091df65f78137513f35edca18ced0f753212e329 100644 (file)
@@ -2436,28 +2436,20 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id)
        if (ret)
                goto err_host_allocated;
 
-       if (host->pdata->blk_settings) {
-               mmc->max_segs = host->pdata->blk_settings->max_segs;
-               mmc->max_blk_size = host->pdata->blk_settings->max_blk_size;
-               mmc->max_blk_count = host->pdata->blk_settings->max_blk_count;
-               mmc->max_req_size = host->pdata->blk_settings->max_req_size;
-               mmc->max_seg_size = host->pdata->blk_settings->max_seg_size;
+       /* Useful defaults if platform data is unset. */
+       if (host->use_dma) {
+               mmc->max_segs = host->ring_size;
+               mmc->max_blk_size = 65536;
+               mmc->max_seg_size = 0x1000;
+               mmc->max_req_size = mmc->max_seg_size * host->ring_size;
+               mmc->max_blk_count = mmc->max_req_size / 512;
        } else {
-               /* Useful defaults if platform data is unset. */
-               if (host->use_dma) {
-                       mmc->max_segs = host->ring_size;
-                       mmc->max_blk_size = 65536;
-                       mmc->max_seg_size = 0x1000;
-                       mmc->max_req_size = mmc->max_seg_size * host->ring_size;
-                       mmc->max_blk_count = mmc->max_req_size / 512;
-               } else {
-                       mmc->max_segs = 64;
-                       mmc->max_blk_size = 65536; /* BLKSIZ is 16 bits */
-                       mmc->max_blk_count = 512;
-                       mmc->max_req_size = mmc->max_blk_size *
-                                           mmc->max_blk_count;
-                       mmc->max_seg_size = mmc->max_req_size;
-               }
+               mmc->max_segs = 64;
+               mmc->max_blk_size = 65536; /* BLKSIZ is 16 bits */
+               mmc->max_blk_count = 512;
+               mmc->max_req_size = mmc->max_blk_size *
+                                   mmc->max_blk_count;
+               mmc->max_seg_size = mmc->max_req_size;
        }
 
        if (dw_mci_get_cd(mmc))
index 1d88bf72c65ffc50afdaa23a8b490591c74eed20..b14fcb5012f179dcf64b79b3dc52eef4f64ca1d2 100644 (file)
@@ -255,7 +255,6 @@ struct dw_mci_board {
 
        struct dw_mci_dma_ops *dma_ops;
        struct dma_pdata *data;
-       struct block_settings *blk_settings;
 };
 
 #endif /* LINUX_MMC_DW_MMC_H */