]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd7bdfe93435667ad614e8bf7d6bab41ec8bb4971
tree720caa520a87498b78a0e5f5f089ba1a7dfeaece
parent946f44de5965a7c3b4a9e7d5538330cc5fa3e6d6
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