Unregister previously registered device
void input_unregister_device(struct input_dev * dev);
dev
device to be unregistered
This function unregisters an input device. Once device is unregistered the caller should not try to access it as it may get freed at any moment.