dmi-id: don't free dev structure after calling device_register