diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2009-02-17 04:11:42 -0500 |
---|---|---|
committer | Samuel Ortiz <samuel@sortiz.org> | 2009-04-04 18:32:23 -0400 |
commit | 3446d4bb93b4d8c7c5b667dd0271669f012fb166 (patch) | |
tree | 26018a7591d80c087d1619dd805eda272299e26f | |
parent | 47c10edd715d420cabd8622a4a458e9ac755b24d (diff) |
mfd: Storage class should be before const qualifier
The C99 specification states in section 6.11.5:
The placement of a storage-class specifier other than at the beginning
of the declaration specifiers in a declaration is an obsolescent
feature.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
-rw-r--r-- | drivers/mfd/t7l66xb.c | 4 | ||||
-rw-r--r-- | drivers/mfd/tc6393xb.c | 2 | ||||
-rw-r--r-- | drivers/mfd/twl4030-irq.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c index 9f7024c0f8ec..e9f4323dd2cb 100644 --- a/drivers/mfd/t7l66xb.c +++ b/drivers/mfd/t7l66xb.c | |||
@@ -108,7 +108,7 @@ static int t7l66xb_mmc_disable(struct platform_device *mmc) | |||
108 | 108 | ||
109 | /*--------------------------------------------------------------------------*/ | 109 | /*--------------------------------------------------------------------------*/ |
110 | 110 | ||
111 | const static struct resource t7l66xb_mmc_resources[] = { | 111 | static const struct resource t7l66xb_mmc_resources[] = { |
112 | { | 112 | { |
113 | .start = 0x800, | 113 | .start = 0x800, |
114 | .end = 0x9ff, | 114 | .end = 0x9ff, |
@@ -126,7 +126,7 @@ const static struct resource t7l66xb_mmc_resources[] = { | |||
126 | }, | 126 | }, |
127 | }; | 127 | }; |
128 | 128 | ||
129 | const static struct resource t7l66xb_nand_resources[] = { | 129 | static const struct resource t7l66xb_nand_resources[] = { |
130 | { | 130 | { |
131 | .start = 0xc00, | 131 | .start = 0xc00, |
132 | .end = 0xc07, | 132 | .end = 0xc07, |
diff --git a/drivers/mfd/tc6393xb.c b/drivers/mfd/tc6393xb.c index f856e9463a9f..77a12fc8045e 100644 --- a/drivers/mfd/tc6393xb.c +++ b/drivers/mfd/tc6393xb.c | |||
@@ -172,7 +172,7 @@ static struct resource __devinitdata tc6393xb_mmc_resources[] = { | |||
172 | }, | 172 | }, |
173 | }; | 173 | }; |
174 | 174 | ||
175 | const static struct resource tc6393xb_ohci_resources[] = { | 175 | static const struct resource tc6393xb_ohci_resources[] = { |
176 | { | 176 | { |
177 | .start = 0x3000, | 177 | .start = 0x3000, |
178 | .end = 0x31ff, | 178 | .end = 0x31ff, |
diff --git a/drivers/mfd/twl4030-irq.c b/drivers/mfd/twl4030-irq.c index b10876036983..aca2670afd78 100644 --- a/drivers/mfd/twl4030-irq.c +++ b/drivers/mfd/twl4030-irq.c | |||
@@ -182,7 +182,7 @@ static int twl4030_irq_thread(void *data) | |||
182 | long irq = (long)data; | 182 | long irq = (long)data; |
183 | struct irq_desc *desc = irq_to_desc(irq); | 183 | struct irq_desc *desc = irq_to_desc(irq); |
184 | static unsigned i2c_errors; | 184 | static unsigned i2c_errors; |
185 | const static unsigned max_i2c_errors = 100; | 185 | static const unsigned max_i2c_errors = 100; |
186 | 186 | ||
187 | if (!desc) { | 187 | if (!desc) { |
188 | pr_err("twl4030: Invalid IRQ: %ld\n", irq); | 188 | pr_err("twl4030: Invalid IRQ: %ld\n", irq); |