diff options
author | Stephen Warren <swarren@nvidia.com> | 2011-10-20 00:19:26 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2011-10-20 11:49:53 +0200 |
commit | 25aec320d993950474a065b59585e8dd006c3e18 (patch) | |
tree | 4a2d78cdf9cc216b3c41a96b907f399122c0f37c /drivers/pinctrl/pinmux-u300.c | |
parent | pinctrl: get_group_pins() const fixes (diff) | |
download | linux-25aec320d993950474a065b59585e8dd006c3e18.tar.xz linux-25aec320d993950474a065b59585e8dd006c3e18.zip |
pinctrl: Remove unsafe __refdata
A pin controller's pin definitions are used both during pinctrl_register()
and pinctrl_unregister(). The latter happens outside of __init/__devinit
time, and hence it is unsafe to mark the pin array as __refdata.
Acked-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinmux-u300.c')
-rw-r--r-- | drivers/pinctrl/pinmux-u300.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinmux-u300.c b/drivers/pinctrl/pinmux-u300.c index 71d23b736ff5..4858a64131f8 100644 --- a/drivers/pinctrl/pinmux-u300.c +++ b/drivers/pinctrl/pinmux-u300.c @@ -179,7 +179,7 @@ #define U300_NUM_PADS 467 /* Pad names for the pinmux subsystem */ -static const struct pinctrl_pin_desc __refdata u300_pads[] = { +static const struct pinctrl_pin_desc u300_pads[] = { /* Pads along the top edge of the chip */ PINCTRL_PIN(0, "P PAD VDD 28"), PINCTRL_PIN(1, "P PAD GND 28"), |