Commit 2b708df2 authored by Jaehoon Chung's avatar Jaehoon Chung Committed by Ulf Hansson

mmc: dw_mmc: remove the unused blk_setting

"blk_setting" doesn't use anywhere.
Signed-off-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
parent 9e747b7e
...@@ -2436,28 +2436,20 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id) ...@@ -2436,28 +2436,20 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id)
if (ret) if (ret)
goto err_host_allocated; goto err_host_allocated;
if (host->pdata->blk_settings) { /* Useful defaults if platform data is unset. */
mmc->max_segs = host->pdata->blk_settings->max_segs; if (host->use_dma) {
mmc->max_blk_size = host->pdata->blk_settings->max_blk_size; mmc->max_segs = host->ring_size;
mmc->max_blk_count = host->pdata->blk_settings->max_blk_count; mmc->max_blk_size = 65536;
mmc->max_req_size = host->pdata->blk_settings->max_req_size; mmc->max_seg_size = 0x1000;
mmc->max_seg_size = host->pdata->blk_settings->max_seg_size; mmc->max_req_size = mmc->max_seg_size * host->ring_size;
mmc->max_blk_count = mmc->max_req_size / 512;
} else { } else {
/* Useful defaults if platform data is unset. */ mmc->max_segs = 64;
if (host->use_dma) { mmc->max_blk_size = 65536; /* BLKSIZ is 16 bits */
mmc->max_segs = host->ring_size; mmc->max_blk_count = 512;
mmc->max_blk_size = 65536; mmc->max_req_size = mmc->max_blk_size *
mmc->max_seg_size = 0x1000; mmc->max_blk_count;
mmc->max_req_size = mmc->max_seg_size * host->ring_size; mmc->max_seg_size = mmc->max_req_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;
}
} }
if (dw_mci_get_cd(mmc)) if (dw_mci_get_cd(mmc))
......
...@@ -255,7 +255,6 @@ struct dw_mci_board { ...@@ -255,7 +255,6 @@ struct dw_mci_board {
struct dw_mci_dma_ops *dma_ops; struct dw_mci_dma_ops *dma_ops;
struct dma_pdata *data; struct dma_pdata *data;
struct block_settings *blk_settings;
}; };
#endif /* LINUX_MMC_DW_MMC_H */ #endif /* LINUX_MMC_DW_MMC_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment