Apparently the SPIN_LOCK_UNLOCKED macro is deprecated and not present in current kernels. I just helped someone compile the kernel module on Ubuntu 12.04 to use their DM2 with Mixxx and I had to make this modification:
On dm2.c line 991 change:
dev->lock = SPIN_LOCK_UNLOCKED;
to:
spin_lock_init(&dev->lock);
and it worked fine.
Thanks,
RJ Ryan
to be more specific the kernel version it didn't build on was 3.2.0-26-generic
I have an Ubuntu 12.04 install with this kernel:
Linux hunter-oct 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
I had the same compile error and fixed it the same way. However, it still doesn't work. It crashes when the DM2 is plugged in and won't boot with the DM2 plugged in.