summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJonas Aaberg <jonas.aberg@stericsson.com>2011-08-29 08:34:10 +0200
committerUlf Hansson <ulf.hansson@stericsson.com>2011-09-19 16:07:34 +0200
commit27a244db49076fa901c30df9c4843bf578467792 (patch)
treed087cf6fd41fd71e92a7d88e5751ddf144c4a814 /drivers
parent573ea4911ca70edfb813587369bbd379e7fd51c9 (diff)
video: mcde: Change to mdelay
The resolution of msleep is related to HZ, so with HZ set to 100 any msleep of less than 10ms will become ~10ms. ST-Ericsson ID: - ST-Ericsson Linux next: Not tested ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I6f33d5cf4ca830a2c7509f8de878e8654c47d4f8 Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/29584
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/mcde/mcde_hw.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/video/mcde/mcde_hw.c b/drivers/video/mcde/mcde_hw.c
index 2accd0558b7..64c704b40ef 100644
--- a/drivers/video/mcde/mcde_hw.c
+++ b/drivers/video/mcde/mcde_hw.c
@@ -1690,7 +1690,7 @@ static void disable_channel(struct mcde_chnl_state *chnl)
chnl->id, i);
goto break_switch;
}
- msleep(1);
+ mdelay(1);
}
} else {
dev_vdbg(&mcde_dev->dev,
@@ -1704,7 +1704,7 @@ static void disable_channel(struct mcde_chnl_state *chnl)
mcde_wfld(MCDE_CRA0, FLOEN, false);
wait_for_channel(chnl);
for (i = 0; i < MCDE_FLOWEN_MAX_TRIAL; i++) {
- msleep(1);
+ mdelay(1);
if (!mcde_rfld(MCDE_CRA0, FLOEN)) {
dev_vdbg(&mcde_dev->dev,
"Flow (A) off after >= %d ms\n", i);
@@ -1718,7 +1718,7 @@ static void disable_channel(struct mcde_chnl_state *chnl)
mcde_wfld(MCDE_CRB0, FLOEN, false);
wait_for_channel(chnl);
for (i = 0; i < MCDE_FLOWEN_MAX_TRIAL; i++) {
- msleep(1);
+ mdelay(1);
if (!mcde_rfld(MCDE_CRB0, FLOEN)) {
dev_vdbg(&mcde_dev->dev,
"Flow (B) off after >= %d ms\n", i);
@@ -1732,7 +1732,7 @@ static void disable_channel(struct mcde_chnl_state *chnl)
mcde_wfld(MCDE_CRC, C1EN, false);
wait_for_channel(chnl);
for (i = 0; i < MCDE_FLOWEN_MAX_TRIAL; i++) {
- msleep(1);
+ mdelay(1);
if (!mcde_rfld(MCDE_CRC, C1EN)) {
dev_vdbg(&mcde_dev->dev,
"Flow (C1) off after >= %d ms\n", i);
@@ -1746,7 +1746,7 @@ static void disable_channel(struct mcde_chnl_state *chnl)
mcde_wfld(MCDE_CRC, C2EN, false);
wait_for_channel(chnl);
for (i = 0; i < MCDE_FLOWEN_MAX_TRIAL; i++) {
- msleep(1);
+ mdelay(1);
if (!mcde_rfld(MCDE_CRC, C2EN)) {
dev_vdbg(&mcde_dev->dev,
"Flow (C2) off after >= %d ms\n", i);
@@ -1782,7 +1782,7 @@ static void enable_channel(struct mcde_chnl_state *chnl)
"Flow (A) enable after >= %d ms\n", i);
return;
}
- msleep(1);
+ mdelay(1);
}
break;
case MCDE_CHNL_B:
@@ -1793,7 +1793,7 @@ static void enable_channel(struct mcde_chnl_state *chnl)
"Flow (B) enable after >= %d ms\n", i);
return;
}
- msleep(1);
+ mdelay(1);
}
break;
case MCDE_CHNL_C0:
@@ -1804,7 +1804,7 @@ static void enable_channel(struct mcde_chnl_state *chnl)
"Flow (C1) enable after >= %d ms\n", i);
return;
}
- msleep(1);
+ mdelay(1);
}
mcde_wfld(MCDE_CRC, POWEREN, true);
break;
@@ -1816,7 +1816,7 @@ static void enable_channel(struct mcde_chnl_state *chnl)
"Flow (C2) enable after >= %d ms\n", i);
return;
}
- msleep(1);
+ mdelay(1);
}
mcde_wfld(MCDE_CRC, POWEREN, true);
break;