diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-02-27 20:32:10 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:25 -0700 |
commit | 4cb8f302738bd4d1fb5e2b909b735e8826558fbf (patch) | |
tree | 98753cda6471857ac542349e7220a7ea5a64109d /drivers/staging/line6/pcm.c | |
parent | 0c7ab1580f82d882478db61467005693b4b4c063 (diff) | |
download | op-kernel-dev-4cb8f302738bd4d1fb5e2b909b735e8826558fbf.zip op-kernel-dev-4cb8f302738bd4d1fb5e2b909b735e8826558fbf.tar.gz |
Staging: line6: remove KERNEL_VERSION checks
As the code is in the kernel tree, it's no longer needed.
Cc: Markus Grabner <grabner@icg.tugraz.at>
Cc: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/line6/pcm.c')
-rw-r--r-- | drivers/staging/line6/pcm.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/staging/line6/pcm.c b/drivers/staging/line6/pcm.c index 725184b..489d398 100644 --- a/drivers/staging/line6/pcm.c +++ b/drivers/staging/line6/pcm.c @@ -26,9 +26,6 @@ int snd_line6_trigger(struct snd_pcm_substream *substream, int cmd) { struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream); -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) - struct list_head *pos; -#endif struct snd_pcm_substream *s; int err; unsigned long flags; @@ -36,12 +33,7 @@ int snd_line6_trigger(struct snd_pcm_substream *substream, int cmd) spin_lock_irqsave(&line6pcm->lock_trigger, flags); clear_bit(BIT_PREPARED, &line6pcm->flags); -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) - snd_pcm_group_for_each(pos, substream) { - s = snd_pcm_group_substream_entry(pos); -#else snd_pcm_group_for_each_entry(s, substream) { -#endif switch(s->stream) { case SNDRV_PCM_STREAM_PLAYBACK: err = snd_line6_playback_trigger(s, cmd); |