ASoC: omap-mcbsp: Cleanup of module probe/remove code
Use devm_* where it is possible to save on cleanup path. Start merging the two mcbsp file content. Move pm_runtime_enable/disable calls to ASoC probe, remove from module probe/remove time. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Tested-by: Grazvydas Ignotas <notasas@gmail.com> Tested-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com> Signed-off-by: Liam Girdwood <lrg@ti.com>
This commit is contained in:

committed by
Liam Girdwood

parent
cb40b63a22
commit
2ee6595069
@@ -341,7 +341,7 @@ int omap_st_enable(struct omap_mcbsp *mcbsp);
|
||||
int omap_st_disable(struct omap_mcbsp *mcbsp);
|
||||
int omap_st_is_enabled(struct omap_mcbsp *mcbsp);
|
||||
|
||||
int __devinit omap_mcbsp_probe(struct platform_device *pdev);
|
||||
int __devexit omap_mcbsp_remove(struct platform_device *pdev);
|
||||
int __devinit omap_mcbsp_init(struct platform_device *pdev);
|
||||
void __devexit omap_mcbsp_sysfs_remove(struct omap_mcbsp *mcbsp);
|
||||
|
||||
#endif /* __ASOC_MCBSP_H */
|
||||
|
Reference in New Issue
Block a user