ASoC: mxs-saif: Remove platform data
Subsystems (3)
Fabio Estevam
reviewerPATCH 1/2 ASoC: mxs-saif: Remove platform data
From: Fabio Estevam <[email protected]>
All MXS users have been converted to device tree and the board files have been removed.
No need to keep platform data in the driver.
--- sound/soc/mxs/mxs-saif.c | 8 -------- 1 file changed, 8 deletions(-)
sound/soc/mxs/mxs-saif.c +0 -8
@@ -652,7 +652,6 @@ static int __devinit mxs_saif_probe(struct platform_device *pdev)struct device_node *np = pdev->dev.of_node;struct resource *iores, *dmares;struct mxs_saif *saif; -struct mxs_saif_platform_data *pdata;struct pinctrl *pinctrl;int ret =0 ;
@@ -682,13 +681,6 @@ static int __devinit mxs_saif_probe(struct platform_device *pdev)if (saif->master_id <0 )return saif->master_id; } - }else { - saif->id = pdev->id; - pdata = pdev->dev.platform_data; -if (pdata && !pdata->master_mode) - saif->master_id = pdata->master_id; -else - saif->master_id = saif->id; }if (saif->master_id <0 || saif->master_id >=ARRAY_SIZE (mxs_saif)) {
Signature · 1 line
1.7.9.5
Fabio Estevam
reviewerPATCH 2/2 ASoC: mxs-saif: Add MODULE_ALIAS
From: Fabio Estevam <[email protected]>
Add MODULE_ALIAS information.
--- sound/soc/mxs/mxs-saif.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/mxs/mxs-saif.c +1 -0
@@ -804,3 +804,4 @@ module_platform_driver(mxs_saif_driver);MODULE_AUTHOR ("Freescale Semiconductor, Inc." );MODULE_DESCRIPTION ("MXS ASoC SAIF driver" );MODULE_LICENSE ("GPL" ); +MODULE_ALIAS ("platform:mxs-saif" );
Signature · 1 line
1.7.9.5
Re: [PATCH 2/2] ASoC: mxs-saif: Add MODULE_ALIAS
Quoted 19 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Add
MODULE_ALIASinformation.Signed-off-by Fabio Estevam <[email protected]>--- sound/soc/mxs/mxs-saif.c | 1 + 1 file changed, 1 insertion(+)sound/soc/mxs/mxs-saif.c +1
-1@@ -804,3 +804,4 @@ module_platform_driver(mxs_saif_driver);MODULE_AUTHOR ("Freescale Semiconductor, Inc." );MODULE_DESCRIPTION ("MXS ASoC SAIF driver" );MODULE_LICENSE ("GPL" ); +MODULE_ALIAS ("platform:mxs-saif" ); --
Quoted 2 lines
1.7.9.5
Regards
Dong Aisheng
Mark Brown
AppliedRe: [PATCH 2/2] ASoC: mxs-saif: Add MODULE_ALIAS
In reply to Fabio EstevamQuoted 3 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Add
MODULE_ALIASinformation.
Applied, thanks.
Quoted 17 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
All MXS users have been converted to device tree and the board files have been removed.
No need to keep platform data in the driver.
Signed-off-by Fabio Estevam <[email protected]>--- sound/soc/mxs/mxs-saif.c | 8 -------- 1 file changed, 8 deletions(-)sound/soc/mxs/mxs-saif.c +0
-0
sound/soc/mxs/mxs-saif.c static int __devinit mxs_saif_probe(struct platform_device *pdev) · line 655
Quoted 4 lines
sound/soc/mxs/mxs-saif.c +0
-1@@ -652,7 +652,6 @@ static int __devinit mxs_saif_probe(struct platform_device *pdev)struct device_node *np = pdev->dev.of_node;struct resource *iores, *dmares;struct mxs_saif *saif; -struct mxs_saif_platform_data *pdata;
Remove the definition of "struct mxs_saif_platform_data" altogether?
Shawn
Quoted 20 lines
sound/soc/mxs/mxs-saif.c +0
-7struct pinctrl *pinctrl;int ret =0 ;@@ -682,13 +681,6 @@ static int __devinit mxs_saif_probe(struct platform_device *pdev)if (saif->master_id <0 )return saif->master_id; } - }else { - saif->id = pdev->id; - pdata = pdev->dev.platform_data; -if (pdata && !pdata->master_mode) - saif->master_id = pdata->master_id; -else - saif->master_id = saif->id; }if (saif->master_id <0 || saif->master_id >=ARRAY_SIZE (mxs_saif)) {Signature · 1 line
1.7.9.5