pinctrl: Remove unsafe __refdata
authorStephen Warren <swarren@nvidia.com>
Wed, 19 Oct 2011 22:19:26 +0000 (16:19 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 20 Oct 2011 09:49:53 +0000 (11:49 +0200)
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>
drivers/pinctrl/pinmux-sirf.c
drivers/pinctrl/pinmux-u300.c

index ddcea1820935b29aa99e4abc8c0d1b3e805a3826..ba735230d91ece490f93289e451a98718f47f446 100644 (file)
@@ -30,7 +30,7 @@
  * pad list for the pinmux subsystem
  * refer to CS-131858-DC-6A.xls
  */
-static const struct pinctrl_pin_desc __refdata sirfsoc_pads[] = {
+static const struct pinctrl_pin_desc sirfsoc_pads[] = {
        PINCTRL_PIN(4, "pwm0"),
        PINCTRL_PIN(5, "pwm1"),
        PINCTRL_PIN(6, "pwm2"),
index 71d23b736ff578de07779faa1ec6d66f868151a0..4858a64131f8e06f743c946ded0af19adeaec1bd 100644 (file)
 #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"),