mfd: Storage class should be before const qualifier
authorTobias Klauser <tklauser@distanz.ch>
Tue, 17 Feb 2009 09:11:42 +0000 (10:11 +0100)
committerSamuel Ortiz <samuel@sortiz.org>
Sat, 4 Apr 2009 22:32:23 +0000 (00:32 +0200)
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>
drivers/mfd/t7l66xb.c
drivers/mfd/tc6393xb.c
drivers/mfd/twl4030-irq.c

index 9f7024c0f8ec284843cd70deeefedf51babf84c4..e9f4323dd2cb4ea67e6263ec75059b3c5604cc85 100644 (file)
@@ -108,7 +108,7 @@ static int t7l66xb_mmc_disable(struct platform_device *mmc)
 
 /*--------------------------------------------------------------------------*/
 
-const static struct resource t7l66xb_mmc_resources[] = {
+static const struct resource t7l66xb_mmc_resources[] = {
        {
                .start = 0x800,
                .end    = 0x9ff,
@@ -126,7 +126,7 @@ const static struct resource t7l66xb_mmc_resources[] = {
        },
 };
 
-const static struct resource t7l66xb_nand_resources[] = {
+static const struct resource t7l66xb_nand_resources[] = {
        {
                .start  = 0xc00,
                .end    = 0xc07,
index f856e9463a9f90ed3b9a11913ddf371c09e8a57f..77a12fc8045e4367fff065f861237035e658f597 100644 (file)
@@ -172,7 +172,7 @@ static struct resource __devinitdata tc6393xb_mmc_resources[] = {
        },
 };
 
-const static struct resource tc6393xb_ohci_resources[] = {
+static const struct resource tc6393xb_ohci_resources[] = {
        {
                .start  = 0x3000,
                .end    = 0x31ff,
index b10876036983e241974bc36fa8638850fc9245b7..aca2670afd78de258a47c6a30c3877bda2185eb7 100644 (file)
@@ -182,7 +182,7 @@ static int twl4030_irq_thread(void *data)
        long irq = (long)data;
        struct irq_desc *desc = irq_to_desc(irq);
        static unsigned i2c_errors;
-       const static unsigned max_i2c_errors = 100;
+       static const unsigned max_i2c_errors = 100;
 
        if (!desc) {
                pr_err("twl4030: Invalid IRQ: %ld\n", irq);