detach the kernel driver before mode switch