diff options
author | Stephen Warren <swarren@nvidia.com> | 2011-10-19 18:19:26 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2011-10-20 05:49:53 -0400 |
commit | 25aec320d993950474a065b59585e8dd006c3e18 (patch) | |
tree | 4a2d78cdf9cc216b3c41a96b907f399122c0f37c /drivers/pinctrl | |
parent | a5818a8bd095a08cfb1871b63af9c8bed103e4b9 (diff) |
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')
-rw-r--r-- | drivers/pinctrl/pinmux-sirf.c | 2 | ||||
-rw-r--r-- | drivers/pinctrl/pinmux-u300.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/pinmux-sirf.c b/drivers/pinctrl/pinmux-sirf.c index ddcea1820935..ba735230d91e 100644 --- a/drivers/pinctrl/pinmux-sirf.c +++ b/drivers/pinctrl/pinmux-sirf.c | |||
@@ -30,7 +30,7 @@ | |||
30 | * pad list for the pinmux subsystem | 30 | * pad list for the pinmux subsystem |
31 | * refer to CS-131858-DC-6A.xls | 31 | * refer to CS-131858-DC-6A.xls |
32 | */ | 32 | */ |
33 | static const struct pinctrl_pin_desc __refdata sirfsoc_pads[] = { | 33 | static const struct pinctrl_pin_desc sirfsoc_pads[] = { |
34 | PINCTRL_PIN(4, "pwm0"), | 34 | PINCTRL_PIN(4, "pwm0"), |
35 | PINCTRL_PIN(5, "pwm1"), | 35 | PINCTRL_PIN(5, "pwm1"), |
36 | PINCTRL_PIN(6, "pwm2"), | 36 | PINCTRL_PIN(6, "pwm2"), |
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 @@ | |||
179 | #define U300_NUM_PADS 467 | 179 | #define U300_NUM_PADS 467 |
180 | 180 | ||
181 | /* Pad names for the pinmux subsystem */ | 181 | /* Pad names for the pinmux subsystem */ |
182 | static const struct pinctrl_pin_desc __refdata u300_pads[] = { | 182 | static const struct pinctrl_pin_desc u300_pads[] = { |
183 | /* Pads along the top edge of the chip */ | 183 | /* Pads along the top edge of the chip */ |
184 | PINCTRL_PIN(0, "P PAD VDD 28"), | 184 | PINCTRL_PIN(0, "P PAD VDD 28"), |
185 | PINCTRL_PIN(1, "P PAD GND 28"), | 185 | PINCTRL_PIN(1, "P PAD GND 28"), |