detach kernel driver only if kernel driver is active
make sure variable is initialized