pwm: jz4740: Obtain regmap from parent node
authorPaul Cercueil <paul@crapouillou.net>
Mon, 23 Mar 2020 14:24:20 +0000 (15:24 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 30 Mar 2020 16:03:09 +0000 (18:03 +0200)
commitc2693514a0a1ec3abcb4673775af3edc797e8a07
treeef380b00d25a48e8b41a8b52eb4f945a36f786bd
parent485b56f08f3342f353369ee6f9c26053efb2b925
pwm: jz4740: Obtain regmap from parent node

The TCU registers are shared between a handful of drivers, accessing
them through the same regmap.

While this driver is devicetree-compatible, it is never (as of now)
probed from devicetree, so this change does not introduce a ABI problem
with current devicetree files.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Tested-by: Mathieu Malaterre <malat@debian.org>
Tested-by: Artur Rojek <contact@artur-rojek.eu>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/Kconfig
drivers/pwm/pwm-jz4740.c