ASoC: omap-mcbsp: Rename omap_mcbsp_sysfs_remove() to omap_mcbsp_cleanup()
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 30 May 2016 08:23:48 +0000 (11:23 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 10 Jun 2016 12:07:24 +0000 (05:07 -0700)
The function will do more then removing the sysfs files in the future.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
sound/soc/omap/mcbsp.c
sound/soc/omap/mcbsp.h
sound/soc/omap/omap-mcbsp.c

index 4a16e778966bb4fc64346c8d535ff45877bfd8e1..ace73b97769f4b03b51dde83f925a18de5af0f02 100644 (file)
@@ -1088,7 +1088,7 @@ err_thres:
        return ret;
 }
 
-void omap_mcbsp_sysfs_remove(struct omap_mcbsp *mcbsp)
+void omap_mcbsp_cleanup(struct omap_mcbsp *mcbsp)
 {
        if (mcbsp->pdata->buffer_size)
                sysfs_remove_group(&mcbsp->dev->kobj, &additional_attr_group);
index 96d1b086bcf8b608cdb50693702105e58d17b3cf..ce6cbbf923a481c835551e39cfe986e6166e70e1 100644 (file)
@@ -349,6 +349,6 @@ int omap_st_disable(struct omap_mcbsp *mcbsp);
 int omap_st_is_enabled(struct omap_mcbsp *mcbsp);
 
 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 */
index fd99d89de6a854606357b50c44deeb43bcfb04ab..db07debb4a9c1ec1aa7a41e9c0813be5fd030540 100644 (file)
@@ -832,7 +832,7 @@ static int asoc_mcbsp_remove(struct platform_device *pdev)
        if (mcbsp->pdata->ops && mcbsp->pdata->ops->free)
                mcbsp->pdata->ops->free(mcbsp->id);
 
-       omap_mcbsp_sysfs_remove(mcbsp);
+       omap_mcbsp_cleanup(mcbsp);
 
        clk_put(mcbsp->fclk);