drm/aspeed: Look up syscon by phandle
authorJoel Stanley <joel@jms.id.au>
Tue, 9 Feb 2021 12:37:33 +0000 (23:07 +1030)
committerJoel Stanley <joel@jms.id.au>
Wed, 10 Feb 2021 00:26:15 +0000 (10:56 +1030)
commit92614ad540171382d856e178cd2073377f2d1a7c
tree6711f7dd9d055c832f8390e59d9c2100d4d34cb7
parentf1a75f4dd8edf272b6b7cdccf6ba6254ec9d15fa
drm/aspeed: Look up syscon by phandle

This scales better to multiple families of SoC. The lookup by compatible
can be removed in a future change.

The fallback path is for the ast2500 platform only. Other platforms will
be added with the new style, so they won't need fallback paths.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Link: https://patchwork.freedesktop.org/patch/msgid/20210209123734.130483-2-joel@jms.id.au
drivers/gpu/drm/aspeed/aspeed_gfx_drv.c