[nvidia-304xx-kmod/f25] updated patch for 4.12 kernel; added ifdefs to work with older kernels