OSDN Git Service

gpio: remove gpio_ensure_requested()
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 24 Jul 2014 05:51:02 +0000 (14:51 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 24 Jul 2014 16:18:47 +0000 (18:18 +0200)
commitc7caf86823c71fae652cc50c7d8dd0d2b5c41229
tree3cb7cf155bf315ffd9b85c641615eb84dfb08150
parent7fd834ad77f79fe0e8e9840238f18bdc088c97b6
gpio: remove gpio_ensure_requested()

gpio_ensure_requested() has been introduced in Feb. 2008 by commit
d2876d08d86f2 to force users of the GPIO API to explicitly request GPIOs
before using them.

Hopefully by now all GPIOs are correctly requested and this extra check
can be omitted ; in any case the GPIO maintainers won't feel bad if
machines start failing after 6 years of warnings.

This patch removes that function from the dark ages.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-legacy.c
include/asm-generic/gpio.h