mmc: dw_mmc: remove the unnecessary function.
Subsystems (2)
Jaehoon Chung
maintainerPATCH v4 5/7 mmc: dw_mmc: remove the unnecessary function.
Remove unnecessary function.
This function didn't re-use anywhere.
Signed-off-by Jaehoon Chung <[email protected]>
---
Changelog V4:
- None
Changelog V3:
- None
Changelog V2:
- None
drivers/mmc/host/dw_mmc.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
drivers/mmc/host/dw_mmc.c +1 -7
@@ -235,12 +235,6 @@ err: }#endif /* defined(CONFIG_DEBUG_FS) */ -static void dw_mci_set_timeout (struct dw_mci *host) -{ -/* timeout (maximum) */ -mci_writel (host,TMOUT ,0xffffffff ); -} -static u32 dw_mci_prepare_command (struct mmc_host *mmc,struct mmc_command *cmd) {struct mmc_data *data;
@@ -861,7 +855,7 @@ static void __dw_mci_start_request(struct dw_mci *host, data = cmd->data;if (data) { -dw_mci_set_timeout (host); +mci_writel (host,TMOUT ,0xFFFFFFFF );mci_writel (host,BYTCNT , data->blksz*data->blocks);mci_writel (host,BLKSIZ , data->blksz); }
Signature · 1 line
1.7.9.5
Quoted 4 lines · Jaehoon Chung
Remove unnecessary function.
This function didn't re-use anywhere.Signed-off-by Jaehoon Chung <[email protected]>
Acked-by Ulf Hansson <[email protected]>
Quoted 39 lines
---
Changelog V4:
- None
Changelog V3:
- None
Changelog V2:
- Nonedrivers/mmc/host/dw_mmc.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)drivers/mmc/host/dw_mmc.c +1
-8@@ -235,12 +235,6 @@ err: }#endif /* defined(CONFIG_DEBUG_FS) */ -static void dw_mci_set_timeout (struct dw_mci *host) -{ -/* timeout (maximum) */ -mci_writel (host,TMOUT ,0xffffffff ); -} -static u32 dw_mci_prepare_command (struct mmc_host *mmc,struct mmc_command *cmd) {struct mmc_data *data;@@ -861,7 +855,7 @@ static void __dw_mci_start_request(struct dw_mci *host, data = cmd->data;if (data) { -dw_mci_set_timeout (host); +mci_writel (host,TMOUT ,0xFFFFFFFF );mci_writel (host,BYTCNT , data->blksz*data->blocks);mci_writel (host,BLKSIZ , data->blksz); } --1.7.9.5