Chip type detection was previously done in muge_attach_post, which happens after attach. We want the driver to instead fail to attach for unsupported devices.
(I'm not sure this is the best place for this code, but ue_attach_post isn't able to return an error and ue_attach_post_sub seems too late.)
Also replace call to muge_detach on failure with reverse teardown of only those setup tasks that have been performed.