[PATCH v3 8/8] coresight: Unify error handling in coresight_register()