Unverified Commit 2e8c6b27 authored by Matt Coster's avatar Matt Coster
Browse files

drm/imagination: Use new generic compatible string



Follow-on from the companion dt-bindings change ("dt-bindings: gpu: img:
More explicit compatible strings"), deprecating "img,img-axe" in favour of
the more explicit combination of "img,img-rogue" and "img,img-axe-1-16m".

Since all relevant details are interrogated from the device at runtime,
we can match on the generic "img,img-rogue" and avoid adding more entries
with NULL data members (barring hardware quirks).

Reviewed-by: default avatarFrank Binns <frank.binns@imgtec.com>
Link: https://lore.kernel.org/r/20250410-sets-bxs-4-64-patch-v1-v6-4-eda620c5865f@imgtec.com


Signed-off-by: default avatarMatt Coster <matt.coster@imgtec.com>
parent 0fb32b77
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1473,6 +1473,13 @@ static void pvr_remove(struct platform_device *plat_dev)
}

static const struct of_device_id dt_match[] = {
	{ .compatible = "img,img-rogue", .data = NULL },

	/*
	 * This legacy compatible string was introduced early on before the more generic
	 * "img,img-rogue" was added. Keep it around here for compatibility, but never use
	 * "img,img-axe" in new devicetrees.
	 */
	{ .compatible = "img,img-axe", .data = NULL },
	{}
};