extcon: Remove the optional name of extcon device
[firefly-linux-kernel-4.4.55.git] / drivers / extcon / extcon-sm5502.c
index 2f93cf3078521e7c2f635ed9320b1d7984a383e5..6f1d11f8723bb1df4f3b92a3949effdda3624357 100644 (file)
@@ -623,7 +623,6 @@ static int sm5022_muic_i2c_probe(struct i2c_client *i2c,
                dev_err(info->dev, "failed to allocate memory for extcon\n");
                return -ENOMEM;
        }
-       info->edev->name = np->name;
 
        /* Register extcon device */
        ret = devm_extcon_dev_register(info->dev, info->edev);