[PATCH v10 13/30] drm: omapdrm: use common helper for extracting pages array