Input: fix resetting name, phys and uniq when unregistering device