[PATCH] ARM: S3C64XX: Remove un-used code
Kukjin Kim
kgene.kim at samsung.com
Fri Aug 19 01:24:09 EDT 2011
Banajit Goswami wrote:
>
> Remove un-used backlight code for SMDK6410 board
>
> Signed-off-by: Banajit Goswami <banajit.g at samsung.com>
> ---
> arch/arm/mach-s3c64xx/mach-smdk6410.c | 39
---------------------------------
> 1 files changed, 0 insertions(+), 39 deletions(-)
>
> diff --git a/arch/arm/mach-s3c64xx/mach-smdk6410.c b/arch/arm/mach-
> s3c64xx/mach-smdk6410.c
> index ecbea92..a9f3183 100644
> --- a/arch/arm/mach-s3c64xx/mach-smdk6410.c
> +++ b/arch/arm/mach-s3c64xx/mach-smdk6410.c
> @@ -262,45 +262,6 @@ static struct samsung_keypad_platdata
> smdk6410_keypad_data __initdata = {
> .cols = 8,
> };
>
> -static int smdk6410_backlight_init(struct device *dev)
> -{
> - int ret;
> -
> - ret = gpio_request(S3C64XX_GPF(15), "Backlight");
> - if (ret) {
> - printk(KERN_ERR "failed to request GPF for PWM-OUT1\n");
> - return ret;
> - }
> -
> - /* Configure GPIO pin with S3C64XX_GPF15_PWM_TOUT1 */
> - s3c_gpio_cfgpin(S3C64XX_GPF(15), S3C_GPIO_SFN(2));
> -
> - return 0;
> -}
> -
> -static void smdk6410_backlight_exit(struct device *dev)
> -{
> - s3c_gpio_cfgpin(S3C64XX_GPF(15), S3C_GPIO_OUTPUT);
> - gpio_free(S3C64XX_GPF(15));
> -}
> -
> -static struct platform_pwm_backlight_data smdk6410_backlight_data = {
> - .pwm_id = 1,
> - .max_brightness = 255,
> - .dft_brightness = 255,
> - .pwm_period_ns = 78770,
> - .init = smdk6410_backlight_init,
> - .exit = smdk6410_backlight_exit,
> -};
> -
> -static struct platform_device smdk6410_backlight_device = {
> - .name = "pwm-backlight",
> - .dev = {
> - .parent = &s3c_device_timer[1].dev,
> - .platform_data = &smdk6410_backlight_data,
> - },
> -};
> -
> static struct map_desc smdk6410_iodesc[] = {};
>
> static struct platform_device *smdk6410_devices[] __initdata = {
> --
> 1.7.2.3
OK, applied.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <kgene.kim at samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
More information about the linux-arm-kernel
mailing list