Re: [PATCH v2 2/3][RESEND] backlight: ot200_bl: use devm_ functions

From: Christian Gmeiner
Date: Tue Jun 12 2012 - 03:50:25 EST


2012/6/12 Axel Lin <axel.lin@xxxxxxxxx>:
>> Âerror_mfgpt_alloc:
>> Â Â Â Âgpio_free(GPIO_DIMM);
>
> You can also use devm_gpio_request, so you can remove gpio_free here
> and remove the gpio_free in ot200_backlight_remove().

nice catch
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/