]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pinctrl/nomadik: make independent of prcmu driver
authorJonas Aaberg <jonas.aberg@stericsson.com>
Thu, 25 Oct 2012 06:40:42 +0000 (08:40 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 8 Nov 2012 12:44:59 +0000 (13:44 +0100)
commit241e51ebd3b2c599a4d74f0969a515a40533ea65
tree1b331f397d3d781b9d17a44589dabcd2ed98af26
parentf48283367fd2679906e06bdd9e886eec1ee59eb1
pinctrl/nomadik: make independent of prcmu driver

Currently there are some unnecessary criss-cross
dependencies between the PRCMU driver in MFD and a lot of
other drivers, mainly because other drivers need to poke
around in the PRCM register range.

In cases like this there are actually just a few select
registers that the pinctrl driver need to read/modify/write,
and it turns out that no other driver is actually using
these registers, so there are no concurrency issues
whatsoever.

So: don't let the location of the register range complicate
things, just poke into these registers directly and skip
a layer of indirection.

Cc: Loic Pallardy <loic.pallardy@st.com>
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-nomadik-db8500.c
drivers/pinctrl/pinctrl-nomadik-db8540.c
drivers/pinctrl/pinctrl-nomadik-stn8815.c
drivers/pinctrl/pinctrl-nomadik.c
drivers/pinctrl/pinctrl-nomadik.h