summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael.yan <michael.yan@starfivetech.com>2021-07-06 06:02:52 +0300
committermichael.yan <michael.yan@starfivetech.com>2021-07-06 06:02:52 +0300
commitbd7e8c45487c85abfffa5bb47a1e13d60d90ebf9 (patch)
tree8e3b9bb7d6b6f18f3686559480399362ac4ee1c1
parentddda1808a6ea9a5a976cebaf26520933ece137d6 (diff)
downloadlinux-bd7e8c45487c85abfffa5bb47a1e13d60d90ebf9.tar.xz
[ALSA] remove debug code.
-rw-r--r--sound/soc/codecs/ac108.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/sound/soc/codecs/ac108.c b/sound/soc/codecs/ac108.c
index 24b75cd0b01f..316a835fbfe2 100644
--- a/sound/soc/codecs/ac108.c
+++ b/sound/soc/codecs/ac108.c
@@ -1439,8 +1439,6 @@ static int ac108_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *i
unsigned int val = 0;
int ret = 0, index;
- printk(KERN_ERR "%s L.%d", __func__, __LINE__);
-
if (ac10x == NULL) {
ac10x = kzalloc(sizeof(struct ac10x_priv), GFP_KERNEL);
if (ac10x == NULL) {
@@ -1449,8 +1447,6 @@ static int ac108_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *i
}
}
- printk(KERN_ERR "%s L.%d", __func__, __LINE__);
-
index = (int)i2c_id->driver_data;
if (index == AC101_I2C_ID) {
ac10x->i2c101 = i2c;
@@ -1463,8 +1459,6 @@ static int ac108_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *i
goto __ret;
}
- printk(KERN_ERR "%s L.%d", __func__, __LINE__);
-
ret = of_property_read_u32(np, "data-protocol", &val);
if (ret) {
pr_err("Please set data-protocol.\n");
@@ -1475,8 +1469,6 @@ static int ac108_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *i
if (of_property_read_u32(np, "tdm-chips-count", &val)) val = 1;
ac10x->tdm_chips_cnt = val;
- printk(KERN_ERR "%s L.%d", __func__, __LINE__);
-
pr_err(" ac10x i2c_id number: %d\n", index);
pr_err(" ac10x data protocol: %d\n", ac10x->data_protocol);
@@ -1488,8 +1480,6 @@ static int ac108_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *i
return ret;
}
- printk(KERN_ERR "%s L.%d", __func__, __LINE__);
-
/*
* Writing this register with 0x12
* will resets all register to their default state.
@@ -1502,8 +1492,6 @@ static int ac108_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *i
/* sync regcache for FLAT type */
ac10x_fill_regcache(&i2c->dev, ac10x->i2cmap[index]);
- printk(KERN_ERR "%s L.%d", __func__, __LINE__);
-
ac10x->codec_cnt++;
pr_err(" ac10x codec count : %d\n", ac10x->codec_cnt);
@@ -1512,8 +1500,6 @@ static int ac108_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *i
pr_err("failed to create attr group\n");
}
- printk(KERN_ERR "%s L.%d", __func__, __LINE__);
-
__ret:
/* It's time to bind codec to i2c[_MASTER_INDEX] when all i2c are ready */
if ((ac10x->codec_cnt != 0 && ac10x->tdm_chips_cnt < 2)