drm: pl111: Simplify vexpress init
authorRob Herring <robh@kernel.org>
Thu, 2 Apr 2020 17:34:25 +0000 (11:34 -0600)
committerRob Herring <robh@kernel.org>
Tue, 28 Apr 2020 19:06:20 +0000 (14:06 -0500)
commitcbcab504ceecc0b27ab829cbbcd5cad1c17b3975
tree720caa520a87498b78a0e5f5f089ba1a7dfeaece
parent66ddc1e94114d0271910ed31af6c301a281c9260
drm: pl111: Simplify vexpress init

The init VExpress variants currently instantiates a 'muxfpga' driver for
the sole purpose of getting a regmap for it. There's no reason to
instantiate a driver and doing so just complicates things. The muxfpga
driver also isn't unregistered properly on module unload. Let's
just simplify all this this by just calling
devm_regmap_init_vexpress_config() directly.

Cc: Eric Anholt <eric@anholt.net>
Cc: dri-devel@lists.freedesktop.org
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200409013947.12667-3-robh@kernel.org
drivers/gpu/drm/pl111/pl111_versatile.c
drivers/gpu/drm/pl111/pl111_vexpress.c
drivers/gpu/drm/pl111/pl111_vexpress.h