The pcm field was not actually used.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
bool global_enabled;
wait_queue_head_t hwdep_wait;
u32 notification_bits;
- struct snd_pcm_substream *pcm;
struct fw_iso_resources resources;
struct amdtp_out_stream stream;
};
return err;
pcm->private_data = dice;
strcpy(pcm->name, dice->card->shortname);
- dice->pcm = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
- dice->pcm->ops = &ops;
+ pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->ops = &ops;
return 0;
}