[PATCH v6 14/36] drm: omapdrm: use common helper for extracting pages array