mmc: postponed needless timer initialization
mmc_init() doesn't call get_timer() anymore if MMC is already initialized. <panto> Minor formatting fix. Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com> Signed-off-by: Mateusz Zalega <m.zalega@samsung.com>
This commit is contained in:
committed by
Pantelis Antoniou
parent
46c8ebc8cd
commit
d803fea576
@@ -1310,10 +1310,13 @@ static int mmc_complete_init(struct mmc *mmc)
|
|||||||
int mmc_init(struct mmc *mmc)
|
int mmc_init(struct mmc *mmc)
|
||||||
{
|
{
|
||||||
int err = IN_PROGRESS;
|
int err = IN_PROGRESS;
|
||||||
unsigned start = get_timer(0);
|
unsigned start;
|
||||||
|
|
||||||
if (mmc->has_init)
|
if (mmc->has_init)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
start = get_timer(0);
|
||||||
|
|
||||||
if (!mmc->init_in_progress)
|
if (!mmc->init_in_progress)
|
||||||
err = mmc_start_init(mmc);
|
err = mmc_start_init(mmc);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user