static int asoc_mcbsp_remove(struct platform_device *pdev) { struct omap_mcbsp *mcbsp = platform_get_drvdata(pdev); if (mcbsp->pdata->ops && mcbsp->pdata->ops->free) mcbsp->pdata->ops->free(mcbsp->id); omap_mcbsp_sysfs_remove(mcbsp); clk_put(mcbsp->fclk); return 0; }
static int asoc_mcbsp_remove(struct platform_device *pdev) { struct omap_mcbsp *mcbsp = platform_get_drvdata(pdev); snd_soc_unregister_dai(&pdev->dev); if (mcbsp->pdata->ops && mcbsp->pdata->ops->free) mcbsp->pdata->ops->free(mcbsp->id); omap_mcbsp_sysfs_remove(mcbsp); clk_put(mcbsp->fclk); platform_set_drvdata(pdev, NULL); return 0; }