[PATCH 4.19 344/422] coresight: Use ERR_CAST instead of ERR_PTR