ASoC: SOF: Add ops_free
[linux-2.6-microblaze.git] / sound / soc / sof / ops.h
index b79ae4f..55d43ad 100644 (file)
@@ -29,6 +29,12 @@ static inline int sof_ops_init(struct snd_sof_dev *sdev)
        return 0;
 }
 
+static inline void sof_ops_free(struct snd_sof_dev *sdev)
+{
+       if (sdev->pdata->desc->ops_free)
+               sdev->pdata->desc->ops_free(sdev);
+}
+
 /* Mandatory operations are verified during probing */
 
 /* init */