Merge remote-tracking branch 'asoc/topic/spear' into asoc-next
This commit is contained in:
commit
6c61bbf0e8
|
@ -257,20 +257,12 @@ static int spdif_in_probe(struct platform_device *pdev)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
return snd_soc_register_component(&pdev->dev, &spdif_in_component,
|
return devm_snd_soc_register_component(&pdev->dev, &spdif_in_component,
|
||||||
&spdif_in_dai, 1);
|
&spdif_in_dai, 1);
|
||||||
}
|
|
||||||
|
|
||||||
static int spdif_in_remove(struct platform_device *pdev)
|
|
||||||
{
|
|
||||||
snd_soc_unregister_component(&pdev->dev);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct platform_driver spdif_in_driver = {
|
static struct platform_driver spdif_in_driver = {
|
||||||
.probe = spdif_in_probe,
|
.probe = spdif_in_probe,
|
||||||
.remove = spdif_in_remove,
|
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "spdif-in",
|
.name = "spdif-in",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
|
|
|
@ -280,7 +280,6 @@ static int spdif_out_probe(struct platform_device *pdev)
|
||||||
struct spdif_out_dev *host;
|
struct spdif_out_dev *host;
|
||||||
struct spear_spdif_platform_data *pdata;
|
struct spear_spdif_platform_data *pdata;
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
int ret;
|
|
||||||
|
|
||||||
host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL);
|
host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL);
|
||||||
if (!host) {
|
if (!host) {
|
||||||
|
@ -307,16 +306,8 @@ static int spdif_out_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
dev_set_drvdata(&pdev->dev, host);
|
dev_set_drvdata(&pdev->dev, host);
|
||||||
|
|
||||||
ret = snd_soc_register_component(&pdev->dev, &spdif_out_component,
|
return devm_snd_soc_register_component(&pdev->dev, &spdif_out_component,
|
||||||
&spdif_out_dai, 1);
|
&spdif_out_dai, 1);
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int spdif_out_remove(struct platform_device *pdev)
|
|
||||||
{
|
|
||||||
snd_soc_unregister_component(&pdev->dev);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
|
@ -357,7 +348,6 @@ static SIMPLE_DEV_PM_OPS(spdif_out_dev_pm_ops, spdif_out_suspend, \
|
||||||
|
|
||||||
static struct platform_driver spdif_out_driver = {
|
static struct platform_driver spdif_out_driver = {
|
||||||
.probe = spdif_out_probe,
|
.probe = spdif_out_probe,
|
||||||
.remove = spdif_out_remove,
|
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "spdif-out",
|
.name = "spdif-out",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
|
|
Loading…
Reference in New Issue