--- tumbler.c~ 2004-08-12 18:15:31.000000000 +0200 +++ tumbler.c 2004-08-12 18:14:47.000000000 +0200 @@ -846,7 +846,11 @@ } } +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) +static struct tq_struct device_change; +#else static struct work_struct device_change; +#endif static void device_change_handler(void *self) @@ -895,7 +899,11 @@ /* finally we need to schedule an update of the mixer values (master and DRC are enough for now) -ReneR */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) + schedule_task(&device_change); +#else schedule_work(&device_change); +#endif } } @@ -1156,7 +1164,11 @@ chip->resume = tumbler_resume; #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) + INIT_TQUEUE(&device_change, device_change_handler, (void *)chip); +#else INIT_WORK(&device_change, device_change_handler, (void *)chip); +#endif #ifdef PMAC_SUPPORT_AUTOMUTE if (mix->headphone_irq >=0 && (err = snd_pmac_add_automute(chip)) < 0)