media: dvb-frontends/m88rs6060: Fix m88rs6060_probe().

This commit is contained in:
CrazyCat
2024-03-15 17:30:55 +02:00
parent a4014d9835
commit 8ac9d8f7e0

View File

@@ -3506,7 +3506,6 @@ static int m88rs6060_probe(struct i2c_client *client)
base->count++;
dev->base = base;
}else{
base = kzalloc(sizeof(struct m88rs6060_base),GFP_KERNEL);
if(!base)
goto err_kfree;
@@ -3528,8 +3527,10 @@ static int m88rs6060_probe(struct i2c_client *client)
if (ret)
goto err_regmap_exit;
if (tmp != 0xe2)
{
ret = -ENODEV;
goto err_regmap_exit;
}
dev->mclk = 96000;
@@ -3537,7 +3538,6 @@ static int m88rs6060_probe(struct i2c_client *client)
*cfg->fe = &dev->fe;
dev->fe_status = 0;
if(dev->config.HAS_CI){ //for 6910SECI
//for ci clk si5351
struct si5351_priv *priv;
@@ -3593,7 +3593,11 @@ static int m88rs6060_probe(struct i2c_client *client)
err_regmap_exit:
regmap_exit(dev->regmap);
err_base_kfree:
base->count--;
if (base->count==0) {
list_del(&base->m88rs6060list);
kfree(base);
}
err_kfree:
kfree(dev);