diff options
author | Tushar Behera <tushar.behera@linaro.org> | 2012-03-09 11:03:13 -0500 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-03-09 11:03:13 -0500 |
commit | 4db17215da33940e4c594c1152ce765c5506a621 (patch) | |
tree | a416c0943f6bde5ccb365e094fba55d4f207c93d /arch/arm/plat-samsung | |
parent | 7f471ee8bed570c0f8ea48f17a957c3b31f54a61 (diff) |
ARM: SAMSUNG: Add __init attribute to samsung_bl_set()
s3c_set_platdata() is defined with __init attribute, hence all functions
referencing this function should also be defined with __init attribute.
samsung_bl_set() is referenced only in '__init xxx_machine_init()' functions,
thus this change won't put any additional constraint on the usage of
samsung_bl_set().
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-samsung')
-rw-r--r-- | arch/arm/plat-samsung/dev-backlight.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-samsung/dev-backlight.c b/arch/arm/plat-samsung/dev-backlight.c index 2254920a02cf..5f197dcaf10c 100644 --- a/arch/arm/plat-samsung/dev-backlight.c +++ b/arch/arm/plat-samsung/dev-backlight.c | |||
@@ -77,7 +77,7 @@ static struct platform_device samsung_dfl_bl_device __initdata = { | |||
77 | * @gpio_info: structure containing GPIO info for PWM timer | 77 | * @gpio_info: structure containing GPIO info for PWM timer |
78 | * @bl_data: structure containing Backlight control data | 78 | * @bl_data: structure containing Backlight control data |
79 | */ | 79 | */ |
80 | void samsung_bl_set(struct samsung_bl_gpio_info *gpio_info, | 80 | void __init samsung_bl_set(struct samsung_bl_gpio_info *gpio_info, |
81 | struct platform_pwm_backlight_data *bl_data) | 81 | struct platform_pwm_backlight_data *bl_data) |
82 | { | 82 | { |
83 | int ret = 0; | 83 | int ret = 0; |