staging: comedi: drivers: introduce comedi_legacy_detach()