Commit 5cef8df5 authored by Robert Rosengren's avatar Robert Rosengren Committed by Samuel Ortiz

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.
Signed-off-by: default avatarRobert Rosengren <robert.rosengren@stericsson.com>
Reviewed-by: default avatarMattias Wallin <mattias.wallin@stericsson.com>
Reviewed-by: default avatarJohan Palsson <johan.palsson@stericsson.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 9260ad98
...@@ -363,7 +363,7 @@ static void ab8500_irq_remove(struct ab8500 *ab8500) ...@@ -363,7 +363,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", .name = "GPIO_INT6",
.start = AB8500_INT_GPIO6R, .start = AB8500_INT_GPIO6R,
...@@ -372,7 +372,7 @@ static struct resource ab8500_gpio_resources[] = { ...@@ -372,7 +372,7 @@ static struct resource ab8500_gpio_resources[] = {
} }
}; };
static struct resource ab8500_gpadc_resources[] = { static struct resource __devinitdata ab8500_gpadc_resources[] = {
{ {
.name = "HW_CONV_END", .name = "HW_CONV_END",
.start = AB8500_INT_GP_HW_ADC_CONV_END, .start = AB8500_INT_GP_HW_ADC_CONV_END,
...@@ -387,7 +387,7 @@ static struct resource ab8500_gpadc_resources[] = { ...@@ -387,7 +387,7 @@ static struct resource ab8500_gpadc_resources[] = {
}, },
}; };
static struct resource ab8500_rtc_resources[] = { static struct resource __devinitdata ab8500_rtc_resources[] = {
{ {
.name = "60S", .name = "60S",
.start = AB8500_INT_RTC_60S, .start = AB8500_INT_RTC_60S,
...@@ -402,7 +402,7 @@ static struct resource ab8500_rtc_resources[] = { ...@@ -402,7 +402,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", .name = "ONKEY_DBF",
.start = AB8500_INT_PON_KEY1DB_F, .start = AB8500_INT_PON_KEY1DB_F,
...@@ -417,7 +417,7 @@ static struct resource ab8500_poweronkey_db_resources[] = { ...@@ -417,7 +417,7 @@ static struct resource ab8500_poweronkey_db_resources[] = {
}, },
}; };
static struct resource ab8500_bm_resources[] = { static struct resource __devinitdata ab8500_bm_resources[] = {
{ {
.name = "MAIN_EXT_CH_NOT_OK", .name = "MAIN_EXT_CH_NOT_OK",
.start = AB8500_INT_MAIN_EXT_CH_NOT_OK, .start = AB8500_INT_MAIN_EXT_CH_NOT_OK,
...@@ -534,7 +534,7 @@ static struct resource ab8500_bm_resources[] = { ...@@ -534,7 +534,7 @@ static struct resource ab8500_bm_resources[] = {
}, },
}; };
static struct resource ab8500_debug_resources[] = { static struct resource __devinitdata ab8500_debug_resources[] = {
{ {
.name = "IRQ_FIRST", .name = "IRQ_FIRST",
.start = AB8500_INT_MAIN_EXT_CH_NOT_OK, .start = AB8500_INT_MAIN_EXT_CH_NOT_OK,
...@@ -549,7 +549,7 @@ static struct resource ab8500_debug_resources[] = { ...@@ -549,7 +549,7 @@ static struct resource ab8500_debug_resources[] = {
}, },
}; };
static struct resource ab8500_usb_resources[] = { static struct resource __devinitdata ab8500_usb_resources[] = {
{ {
.name = "ID_WAKEUP_R", .name = "ID_WAKEUP_R",
.start = AB8500_INT_ID_WAKEUP_R, .start = AB8500_INT_ID_WAKEUP_R,
...@@ -582,7 +582,7 @@ static struct resource ab8500_usb_resources[] = { ...@@ -582,7 +582,7 @@ static struct resource ab8500_usb_resources[] = {
}, },
}; };
static struct resource ab8500_temp_resources[] = { static struct resource __devinitdata ab8500_temp_resources[] = {
{ {
.name = "AB8500_TEMP_WARM", .name = "AB8500_TEMP_WARM",
.start = AB8500_INT_TEMP_WARM, .start = AB8500_INT_TEMP_WARM,
...@@ -591,7 +591,7 @@ static struct resource ab8500_temp_resources[] = { ...@@ -591,7 +591,7 @@ static struct resource ab8500_temp_resources[] = {
}, },
}; };
static struct mfd_cell ab8500_devs[] = { static struct mfd_cell __devinitdata ab8500_devs[] = {
#ifdef CONFIG_DEBUG_FS #ifdef CONFIG_DEBUG_FS
{ {
.name = "ab8500-debug", .name = "ab8500-debug",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment