spi: clps711x: Provide label argument for devm_gpio_request
authorAxel Lin <axel.lin@ingics.com>
Tue, 4 Mar 2014 04:59:53 +0000 (12:59 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 10 Mar 2014 11:23:37 +0000 (11:23 +0000)
commitfcba212de9bdf1016d981c355df29ab169da8eae
treeab61ad628cebe33564c86624d12c726d4843e8bd
parentbf5c2e27036cffda6e20f445391a4d4e1ccc232e
spi: clps711x: Provide label argument for devm_gpio_request

The label argument was removed by commit 989847967cd762
spi: clps711x: Use devm_gpio_request(), add it back.
This makes it easier to know the gpio usage in /sys/kernel/debug/gpio.

Also remove unnecessary gpio_is_valid() checking, devm_gpio_request() returns
error if the requested gpio is invalid.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-clps711x.c