Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6dd6bf9 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: aw8896: Keep dev name for aw8896 SmartPA"

parents 5ae590a0 9b91470d
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -927,9 +927,6 @@ static int aw8896_probe(struct snd_soc_codec *codec)
	aw8896->codec = codec;
	aw8896_add_codec_controls(aw8896);

	if (codec->dev->of_node)
		dev_set_name(codec->dev, "%s", "aw8896_smartpa");

	return ret;
}

@@ -1404,12 +1401,6 @@ static int aw8896_i2c_probe(struct i2c_client *i2c,
		goto err_id;
	}

	if (i2c->dev.of_node)
		dev_set_name(&i2c->dev, "%s", "aw8896_smartpa");
	else
		dev_err(&i2c->dev, "%s failed to set device name: %d\n",
			__func__, ret);

	/* register codec */
	dai = devm_kzalloc(&i2c->dev, sizeof(aw8896_dai), GFP_KERNEL);
	if (!dai)