The patch titled Subject: backlight: ot200_bl: use devm_gpio_request() has been added to the -mm tree. Its filename is backlight-ot200_bl-use-devm_gpio_request.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Jingoo Han <jg1.han@xxxxxxxxxxx> Subject: backlight: ot200_bl: use devm_gpio_request() The devm_ functions allocate memory that is released when a driver detaches. This patch uses devm_gpio_request() for these functions. Signed-off-by: Jingoo Han <jg1.han@xxxxxxxxxxx> Acked-by: Christian Gmeiner <christian.gmeiner@xxxxxxxxx> Cc: Richard Purdie <rpurdie@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/video/backlight/ot200_bl.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff -puN drivers/video/backlight/ot200_bl.c~backlight-ot200_bl-use-devm_gpio_request drivers/video/backlight/ot200_bl.c --- a/drivers/video/backlight/ot200_bl.c~backlight-ot200_bl-use-devm_gpio_request +++ a/drivers/video/backlight/ot200_bl.c @@ -84,7 +84,8 @@ static int ot200_backlight_probe(struct int retval = 0; /* request gpio */ - if (gpio_request(GPIO_DIMM, "ot200 backlight dimmer") < 0) { + if (devm_gpio_request(&pdev->dev, GPIO_DIMM, + "ot200 backlight dimmer") < 0) { dev_err(&pdev->dev, "failed to request GPIO %d\n", GPIO_DIMM); return -ENODEV; } @@ -93,8 +94,7 @@ static int ot200_backlight_probe(struct pwm_timer = cs5535_mfgpt_alloc_timer(7, MFGPT_DOMAIN_ANY); if (!pwm_timer) { dev_err(&pdev->dev, "MFGPT 7 not available\n"); - retval = -ENODEV; - goto error_mfgpt_alloc; + return -ENODEV; } data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); @@ -131,8 +131,6 @@ static int ot200_backlight_probe(struct error_devm_kzalloc: cs5535_mfgpt_free_timer(pwm_timer); -error_mfgpt_alloc: - gpio_free(GPIO_DIMM); return retval; } @@ -149,7 +147,6 @@ static int ot200_backlight_remove(struct MAX_COMP2 - dim_table[100]); cs5535_mfgpt_free_timer(pwm_timer); - gpio_free(GPIO_DIMM); return 0; } _ Subject: Subject: backlight: ot200_bl: use devm_gpio_request() Patches currently in -mm which might be from jg1.han@xxxxxxxxxxx are drivers-video-backlight-atmel-pwm-blc-use-devm_-functions.patch drivers-video-backlight-ot200_blc-use-devm_-functions.patch drivers-video-backlight-lm3533_blc-use-devm_-functions.patch backlight-atmel-pwm-bl-use-devm_gpio_request.patch backlight-ot200_bl-use-devm_gpio_request.patch backlight-tosa_lcd-use-devm_gpio_request.patch backlight-tosa_bl-use-devm_gpio_request.patch backlight-lms283gf05-use-devm_gpio_request.patch backlight-corgi_lcd-use-devm_gpio_request.patch backlight-l4f00242t03-use-devm_gpio_request_one.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html