Change "#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,24))" to
"#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25))".
This change will make KGTP can build OK with 2.6.24.x.