ASoC: Samsung: s3c-i2s-v2: Fix build error
[deliverable/linux.git] / sound / soc / samsung / s3c-i2s-v2.c
index fefc56100349d5c6c8d8c4a5015eebed545779ac..79e7efb9283cbf740e23b7310750bb4e0f2771f4 100644 (file)
@@ -729,7 +729,7 @@ int s3c_i2sv2_register_component(struct device *dev, int id,
                           struct snd_soc_component_driver *cmp_drv,
                           struct snd_soc_dai_driver *dai_drv)
 {
-       struct snd_soc_dai_ops *ops = drv->ops;
+       struct snd_soc_dai_ops *ops = dai_drv->ops;
 
        ops->trigger = s3c2412_i2s_trigger;
        if (!ops->hw_params)
@@ -742,8 +742,8 @@ int s3c_i2sv2_register_component(struct device *dev, int id,
        if (!ops->delay)
                ops->delay = s3c2412_i2s_delay;
 
-       drv->suspend = s3c2412_i2s_suspend;
-       drv->resume = s3c2412_i2s_resume;
+       dai_drv->suspend = s3c2412_i2s_suspend;
+       dai_drv->resume = s3c2412_i2s_resume;
 
        return snd_soc_register_component(dev, cmp_drv, dai_drv, 1);
 }
This page took 0.035266 seconds and 5 git commands to generate.