mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 09:02:06 +00:00
ASoC: mc13783: trivial: Cleanup module
This is a trivial cleanup: remove useless variable mc13xxx and extra spaces. No functional changes. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
295b84237b
commit
2b32098f74
1 changed files with 7 additions and 10 deletions
|
@ -752,20 +752,14 @@ static struct snd_soc_codec_driver soc_codec_dev_mc13783 = {
|
||||||
|
|
||||||
static int __init mc13783_codec_probe(struct platform_device *pdev)
|
static int __init mc13783_codec_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct mc13xxx *mc13xxx;
|
|
||||||
struct mc13783_priv *priv;
|
struct mc13783_priv *priv;
|
||||||
struct mc13xxx_codec_platform_data *pdata = pdev->dev.platform_data;
|
struct mc13xxx_codec_platform_data *pdata = pdev->dev.platform_data;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
mc13xxx = dev_get_drvdata(pdev->dev.parent);
|
|
||||||
|
|
||||||
|
|
||||||
priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
|
priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
|
||||||
if (priv == NULL)
|
if (!priv)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
dev_set_drvdata(&pdev->dev, priv);
|
|
||||||
priv->mc13xxx = mc13xxx;
|
|
||||||
if (pdata) {
|
if (pdata) {
|
||||||
priv->adc_ssi_port = pdata->adc_ssi_port;
|
priv->adc_ssi_port = pdata->adc_ssi_port;
|
||||||
priv->dac_ssi_port = pdata->dac_ssi_port;
|
priv->dac_ssi_port = pdata->dac_ssi_port;
|
||||||
|
@ -773,6 +767,9 @@ static int __init mc13783_codec_probe(struct platform_device *pdev)
|
||||||
return -ENOSYS;
|
return -ENOSYS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dev_set_drvdata(&pdev->dev, priv);
|
||||||
|
priv->mc13xxx = dev_get_drvdata(pdev->dev.parent);
|
||||||
|
|
||||||
if (priv->adc_ssi_port == priv->dac_ssi_port)
|
if (priv->adc_ssi_port == priv->dac_ssi_port)
|
||||||
ret = snd_soc_register_codec(&pdev->dev, &soc_codec_dev_mc13783,
|
ret = snd_soc_register_codec(&pdev->dev, &soc_codec_dev_mc13783,
|
||||||
mc13783_dai_sync, ARRAY_SIZE(mc13783_dai_sync));
|
mc13783_dai_sync, ARRAY_SIZE(mc13783_dai_sync));
|
||||||
|
@ -792,9 +789,9 @@ static int mc13783_codec_remove(struct platform_device *pdev)
|
||||||
|
|
||||||
static struct platform_driver mc13783_codec_driver = {
|
static struct platform_driver mc13783_codec_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "mc13783-codec",
|
.name = "mc13783-codec",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
},
|
},
|
||||||
.remove = mc13783_codec_remove,
|
.remove = mc13783_codec_remove,
|
||||||
};
|
};
|
||||||
module_platform_driver_probe(mc13783_codec_driver, mc13783_codec_probe);
|
module_platform_driver_probe(mc13783_codec_driver, mc13783_codec_probe);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue