Title: [7713] trunk/sound/soc/codecs/ssm2602.c: roll back to previous revision, since the workaround doesn't work
- Revision
- 7713
- Author
- cliff
- Date
- 2009-10-26 21:53:01 -0400 (Mon, 26 Oct 2009)
Log Message
roll back to previous revision, since the workaround doesn't work
Modified Paths
Diff
Modified: trunk/sound/soc/codecs/ssm2602.c (7712 => 7713)
--- trunk/sound/soc/codecs/ssm2602.c 2009-10-27 01:49:54 UTC (rev 7712)
+++ trunk/sound/soc/codecs/ssm2602.c 2009-10-27 01:53:01 UTC (rev 7713)
@@ -98,7 +98,6 @@
unsigned int value)
{
u8 data[2];
- u8 count = 0;
/* data is
* D15..D9 ssm2602 register offset
@@ -108,14 +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