Commit 6610d357 authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Tony Lindgren

ASoC: omap-mcbsp: Rename omap_mcbsp_sysfs_remove() to omap_mcbsp_cleanup()

The function will do more then removing the sysfs files in the future.
Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent c26c84c9
...@@ -1088,7 +1088,7 @@ int omap_mcbsp_init(struct platform_device *pdev) ...@@ -1088,7 +1088,7 @@ int omap_mcbsp_init(struct platform_device *pdev)
return ret; return ret;
} }
void omap_mcbsp_sysfs_remove(struct omap_mcbsp *mcbsp) void omap_mcbsp_cleanup(struct omap_mcbsp *mcbsp)
{ {
if (mcbsp->pdata->buffer_size) if (mcbsp->pdata->buffer_size)
sysfs_remove_group(&mcbsp->dev->kobj, &additional_attr_group); sysfs_remove_group(&mcbsp->dev->kobj, &additional_attr_group);
......
...@@ -349,6 +349,6 @@ int omap_st_disable(struct omap_mcbsp *mcbsp); ...@@ -349,6 +349,6 @@ int omap_st_disable(struct omap_mcbsp *mcbsp);
int omap_st_is_enabled(struct omap_mcbsp *mcbsp); int omap_st_is_enabled(struct omap_mcbsp *mcbsp);
int omap_mcbsp_init(struct platform_device *pdev); int omap_mcbsp_init(struct platform_device *pdev);
void omap_mcbsp_sysfs_remove(struct omap_mcbsp *mcbsp); void omap_mcbsp_cleanup(struct omap_mcbsp *mcbsp);
#endif /* __ASOC_MCBSP_H */ #endif /* __ASOC_MCBSP_H */
...@@ -832,7 +832,7 @@ static int asoc_mcbsp_remove(struct platform_device *pdev) ...@@ -832,7 +832,7 @@ static int asoc_mcbsp_remove(struct platform_device *pdev)
if (mcbsp->pdata->ops && mcbsp->pdata->ops->free) if (mcbsp->pdata->ops && mcbsp->pdata->ops->free)
mcbsp->pdata->ops->free(mcbsp->id); mcbsp->pdata->ops->free(mcbsp->id);
omap_mcbsp_sysfs_remove(mcbsp); omap_mcbsp_cleanup(mcbsp);
clk_put(mcbsp->fclk); clk_put(mcbsp->fclk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment