[PATCH v4 08/10] coresight: Refactor driver data allocation