Title: [7712] branches/2009R1/sound/soc/codecs/ssm2602.c: roll back to previous revision, since the workaround doesn't work
- Revision
- 7712
- Author
- cliff
- Date
- 2009-10-26 21:49:54 -0400 (Mon, 26 Oct 2009)
Log Message
roll back to previous revision, since the workaround doesn't work
Modified Paths
Diff
Modified: branches/2009R1/sound/soc/codecs/ssm2602.c (7711 => 7712)
--- branches/2009R1/sound/soc/codecs/ssm2602.c 2009-10-26 23:18:25 UTC (rev 7711)
+++ branches/2009R1/sound/soc/codecs/ssm2602.c 2009-10-27 01:49:54 UTC (rev 7712)
@@ -98,7 +98,6 @@
unsigned int value)
{
u8 data[2];
- u8 count = 0;
/* data is
* D15..D9 ssm2602 register offset
@@ -108,15 +107,10 @@
data[1] = value & 0x00ff;
ssm2602_write_reg_cache(codec, reg, value);
- /* If failed, retry it up to 100 times */
- for (count = 0; count < 100; count++)
- if (codec->hw_write(codec->control_data, data, 2) == 2)
- break;
-
- if (count == 100)
- return -EIO;
- else
+ if (codec->hw_write(codec->control_data, data, 2) == 2)
return 0;
+ else
+ return -EIO;
}
#define ssm2602_reset(c) ssm2602_write(c, SSM2602_RESET, 0)
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits