]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - sound/firewire/amdtp-stream.h
locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_...
[mirror_ubuntu-hirsute-kernel.git] / sound / firewire / amdtp-stream.h
index ed6eafd109924013dbeaa231999899b7030e0008..f9abd8b07ce6117518dde7ce9d50450a1f8d3954 100644 (file)
@@ -220,7 +220,7 @@ static inline bool amdtp_stream_pcm_running(struct amdtp_stream *s)
 static inline void amdtp_stream_pcm_trigger(struct amdtp_stream *s,
                                            struct snd_pcm_substream *pcm)
 {
-       ACCESS_ONCE(s->pcm) = pcm;
+       WRITE_ONCE(s->pcm, pcm);
 }
 
 static inline bool cip_sfc_is_base_44100(enum cip_sfc sfc)