Correctly setup/destroy chardev