summaryrefslogtreecommitdiff
path: root/v4l/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'v4l/compat.h')
-rw-r--r--v4l/compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index 97b35d4f7..db45d91f0 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -447,7 +447,7 @@ static inline u8 v4l_compat_pci_rev(struct pci_dev *pci)
# endif
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) && defined(__SOUND_PCM_H)
+#if defined(COMPAT_PCM_TO_RATE_BIT) && defined(__SOUND_PCM_H)
/* New alsa core utility function */
static inline unsigned int snd_pcm_rate_to_rate_bit(unsigned int rate)
{