diff options
author | Robert Rosengren <robert.rosengren@stericsson.com> | 2011-04-07 15:47:50 +0200 |
---|---|---|
committer | Jonas ABERG <jonas.aberg@stericsson.com> | 2011-04-08 15:27:25 +0200 |
commit | 65eb985ae6ae296653eac2e96d6b3a890db97d67 (patch) | |
tree | 4a8fe4baef1e903d598769057639014cf72fd3b1 /drivers/mfd | |
parent | 3c49078f1eb714eebe6b0cb5b1e9e9f5fa457f40 (diff) |
mfd: ab8500-core MFD devices marked as initdata
Internal MFD device structs are marked as __devinitdata since the kernel
will allocate memory for the same when calling mfd_add_devices.
ST-Ericsson ID: 332771
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I1ce3f255d827e6918e9bc351b250487777eb7ec3
Signed-off-by: Robert Rosengren <robert.rosengren@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/20310
Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com>
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/ab8500-core.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c index 64d45913a4f..6fc39188b3b 100644 --- a/drivers/mfd/ab8500-core.c +++ b/drivers/mfd/ab8500-core.c @@ -350,7 +350,7 @@ static void ab8500_irq_remove(struct ab8500 *ab8500) } } -static struct resource ab8500_gpio_resources[] = { +static struct resource __devinitdata ab8500_gpio_resources[] = { { .name = "GPIO_INT6", .start = AB8500_INT_GPIO6R, @@ -359,7 +359,7 @@ static struct resource ab8500_gpio_resources[] = { } }; -static struct resource ab8500_gpadc_resources[] = { +static struct resource __devinitdata ab8500_gpadc_resources[] = { { .name = "HW_CONV_END", .start = AB8500_INT_GP_HW_ADC_CONV_END, @@ -374,7 +374,7 @@ static struct resource ab8500_gpadc_resources[] = { }, }; -static struct resource ab8500_rtc_resources[] = { +static struct resource __devinitdata ab8500_rtc_resources[] = { { .name = "60S", .start = AB8500_INT_RTC_60S, @@ -389,7 +389,7 @@ static struct resource ab8500_rtc_resources[] = { }, }; -static struct resource ab8500_poweronkey_db_resources[] = { +static struct resource __devinitdata ab8500_poweronkey_db_resources[] = { { .name = "ONKEY_DBF", .start = AB8500_INT_PON_KEY1DB_F, @@ -404,7 +404,7 @@ static struct resource ab8500_poweronkey_db_resources[] = { }, }; -static struct resource ab8500_av_acc_detect_resources[] = { +static struct resource __devinitdata ab8500_av_acc_detect_resources[] = { { .name = "ACC_DETECT_1DB_F", .start = AB8500_INT_ACC_DETECT_1DB_F, @@ -443,7 +443,7 @@ static struct resource ab8500_av_acc_detect_resources[] = { }, }; -static struct resource ab8500_charger_resources[] = { +static struct resource __devinitdata ab8500_charger_resources[] = { { .name = "MAIN_CH_UNPLUG_DET", .start = AB8500_INT_MAIN_CH_UNPLUG_DET, @@ -536,7 +536,7 @@ static struct resource ab8500_charger_resources[] = { }, }; -static struct resource ab8500_btemp_resources[] = { +static struct resource __devinitdata ab8500_btemp_resources[] = { { .name = "BAT_CTRL_INDB", .start = AB8500_INT_BAT_CTRL_INDB, @@ -569,7 +569,7 @@ static struct resource ab8500_btemp_resources[] = { }, }; -static struct resource ab8500_fg_resources[] = { +static struct resource __devinitdata ab8500_fg_resources[] = { { .name = "NCONV_ACCU", .start = AB8500_INT_CCN_CONV_ACC, @@ -602,9 +602,9 @@ static struct resource ab8500_fg_resources[] = { }, }; -static struct resource ab8500_chargalg_resources[] = {}; +static struct resource __devinitdata ab8500_chargalg_resources[] = {}; -static struct resource ab8500_debug_resources[] = { +static struct resource __devinitdata ab8500_debug_resources[] = { { .name = "IRQ_FIRST", .start = AB8500_INT_MAIN_EXT_CH_NOT_OK, @@ -619,7 +619,7 @@ static struct resource ab8500_debug_resources[] = { }, }; -static struct resource ab8500_usb_resources[] = { +static struct resource __devinitdata ab8500_usb_resources[] = { { .name = "ID_WAKEUP_R", .start = AB8500_INT_ID_WAKEUP_R, @@ -664,7 +664,7 @@ static struct resource ab8500_usb_resources[] = { }, }; -static struct resource ab8500_temp_resources[] = { +static struct resource __devinitdata ab8500_temp_resources[] = { { .name = "AB8500_TEMP_WARM", .start = AB8500_INT_TEMP_WARM, @@ -673,7 +673,7 @@ static struct resource ab8500_temp_resources[] = { }, }; -static struct mfd_cell ab8500_devs[] = { +static struct mfd_cell __devinitdata ab8500_devs[] = { #ifdef CONFIG_DEBUG_FS { .name = "ab8500-debug", |