Skip to content

Commit

Permalink
mfd: Storage class for timberdale should be before const qualifier
Browse files Browse the repository at this point in the history
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@linux.intel.com>
  • Loading branch information
Tobias Klauser authored and Samuel Ortiz committed May 27, 2010
1 parent 28ade0f commit ae9f52f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions drivers/mfd/timberdale.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ timberdale_ocores_platform_data = {
.num_devices = ARRAY_SIZE(timberdale_i2c_board_info)
};

const static __devinitconst struct resource timberdale_xiic_resources[] = {
static const __devinitconst struct resource timberdale_xiic_resources[] = {
{
.start = XIICOFFSET,
.end = XIICEND,
Expand All @@ -99,7 +99,7 @@ const static __devinitconst struct resource timberdale_xiic_resources[] = {
},
};

const static __devinitconst struct resource timberdale_ocores_resources[] = {
static const __devinitconst struct resource timberdale_ocores_resources[] = {
{
.start = OCORESOFFSET,
.end = OCORESEND,
Expand Down Expand Up @@ -148,7 +148,7 @@ static __devinitdata struct xspi_platform_data timberdale_xspi_platform_data = {
*/
};

const static __devinitconst struct resource timberdale_spi_resources[] = {
static const __devinitconst struct resource timberdale_spi_resources[] = {
{
.start = SPIOFFSET,
.end = SPIEND,
Expand All @@ -161,7 +161,7 @@ const static __devinitconst struct resource timberdale_spi_resources[] = {
},
};

const static __devinitconst struct resource timberdale_eth_resources[] = {
static const __devinitconst struct resource timberdale_eth_resources[] = {
{
.start = ETHOFFSET,
.end = ETHEND,
Expand All @@ -181,7 +181,7 @@ static __devinitdata struct timbgpio_platform_data
.irq_base = 200,
};

const static __devinitconst struct resource timberdale_gpio_resources[] = {
static const __devinitconst struct resource timberdale_gpio_resources[] = {
{
.start = GPIOOFFSET,
.end = GPIOEND,
Expand All @@ -194,7 +194,7 @@ const static __devinitconst struct resource timberdale_gpio_resources[] = {
},
};

const static __devinitconst struct resource timberdale_mlogicore_resources[] = {
static const __devinitconst struct resource timberdale_mlogicore_resources[] = {
{
.start = MLCOREOFFSET,
.end = MLCOREEND,
Expand All @@ -212,7 +212,7 @@ const static __devinitconst struct resource timberdale_mlogicore_resources[] = {
},
};

const static __devinitconst struct resource timberdale_uart_resources[] = {
static const __devinitconst struct resource timberdale_uart_resources[] = {
{
.start = UARTOFFSET,
.end = UARTEND,
Expand All @@ -225,7 +225,7 @@ const static __devinitconst struct resource timberdale_uart_resources[] = {
},
};

const static __devinitconst struct resource timberdale_uartlite_resources[] = {
static const __devinitconst struct resource timberdale_uartlite_resources[] = {
{
.start = UARTLITEOFFSET,
.end = UARTLITEEND,
Expand All @@ -238,7 +238,7 @@ const static __devinitconst struct resource timberdale_uartlite_resources[] = {
},
};

const static __devinitconst struct resource timberdale_radio_resources[] = {
static const __devinitconst struct resource timberdale_radio_resources[] = {
{
.start = RDSOFFSET,
.end = RDSEND,
Expand Down Expand Up @@ -331,7 +331,7 @@ static __devinitdata struct timb_dma_platform_data timb_dma_platform_data = {
}
};

const static __devinitconst struct resource timberdale_dma_resources[] = {
static const __devinitconst struct resource timberdale_dma_resources[] = {
{
.start = DMAOFFSET,
.end = DMAEND,
Expand Down

0 comments on commit ae9f52f

Please sign in to comment.