+ if (class && morph_type_of(morphed, device_morpher))
+ {
+ struct device* dev = to_dev(devm);
+ dev->ident = (struct devident) {
+ .fn_grp = class->fn_grp,
+ .unique = DEV_UNIQUE(class->device, class->variant)
+ };
+ }
+
+ parent = morphed->parent;
+ if (parent) {
+ changeling_attach(parent, morphed);
+ }
+
+ va_end(args);