]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
tegra: gpio: fix null label regression
authorMarcel Ziswiler <marcel@ziswiler.com>
Fri, 10 Oct 2014 14:56:50 +0000 (16:56 +0200)
committerTom Warren <twarren@nvidia.com>
Wed, 22 Oct 2014 16:30:55 +0000 (09:30 -0700)
commit1c1786d4c5790892c9349cc761cb410a1852526b
tree709335f183e4cee63368c18fba6ad20ebfbccdb0
parent09fb73611ff8c247f7196a8e4f957d8696930b69
tegra: gpio: fix null label regression

Fix Tegra GPIO driver to not crash resp. misbehave upon requesting
GPIOs with an empty aka NULL label. As the driver uses exclusively the
label to check for reservation status actually supplying one is
mandatory!

This fixes a regression introduced by commit:

2fccd2d96badcdf6165658a99771a4c475586279
tegra: Convert tegra GPIO driver to use driver model

Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
drivers/gpio/tegra_gpio.c