aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-s3c2440/mach-gta02.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-s3c2440/mach-gta02.c')
-rw-r--r--arch/arm/mach-s3c2440/mach-gta02.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c
index aa350a1fe78..33c1cc3f7c0 100644
--- a/arch/arm/mach-s3c2440/mach-gta02.c
+++ b/arch/arm/mach-s3c2440/mach-gta02.c
@@ -1358,7 +1358,7 @@ static void
gta02_glamo_mmc_set_power(unsigned char power_mode, unsigned short vdd)
{
int mv = 1650;
- int timeout = 100;
+ int timeout = 500;
printk(KERN_DEBUG "mmc_set_power(power_mode=%u, vdd=%u\n",
power_mode, vdd);
@@ -1378,7 +1378,7 @@ gta02_glamo_mmc_set_power(unsigned char power_mode, unsigned short vdd)
while (pcf50633_ready(pcf50633_global) && (timeout--))
msleep(5);
- if (!timeout) {
+ if (timeout < 0) {
printk(KERN_ERR"gta02_glamo_mmc_set_power "
"BAILING on timeout\n");
return;