From c04d3e20e24db102ad6724a7106687b770be866f Mon Sep 17 00:00:00 2001 From: huangys Date: Fri, 16 Oct 2020 16:08:19 +0800 Subject: [PATCH] aw869xx: keep using default device name if we set the device name, It would block the firmware downloading. the reason is that the expected path is not correct. Change-Id: I71244fab069c779842d9d3e9883fa30d0da9647a Signed-off-by: huangys Reviewed-on: https://gerrit.mot.com/1776191 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Reviewed-by: Guobin Zhang Tested-by: Jira Key Submit-Approved: Jira Key --- drivers/misc/awinic/aw869xx/aw869xx.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/misc/awinic/aw869xx/aw869xx.c b/drivers/misc/awinic/aw869xx/aw869xx.c index da7ca5b251b8..149343c13d13 100644 --- a/drivers/misc/awinic/aw869xx/aw869xx.c +++ b/drivers/misc/awinic/aw869xx/aw869xx.c @@ -4251,12 +4251,6 @@ static int aw869xx_i2c_probe(struct i2c_client *i2c, goto err_qualify; } - /* aw869xx device name */ - if (i2c->dev.of_node) - dev_set_name(&i2c->dev, "%s", AW869XX_DEV_NAME); - else - aw_dev_err(&i2c->dev, "%s failed to set device name: %d\n", - __func__, ret); /* register codec */ dai = devm_kzalloc(&i2c->dev, sizeof(aw869xx_dai), GFP_KERNEL); if (!dai)