[PATCH v1 5/5] coresight: Refine error handling for device registration