gpio: tegra: Make lockdep class file-scoped
authorThierry Reding <treding@nvidia.com>
Mon, 6 Jun 2016 16:56:27 +0000 (18:56 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 22 Jun 2016 15:58:07 +0000 (17:58 +0200)
commit9ee8ff4867d07a6429991a0b748fa9c1586a7764
treed0cd45e0f0b0900d6d16c1ca81d3e7b2a9e3f60c
parent0ac3c0a4025f41748a083bdd4970cb3ede802b15
gpio: tegra: Make lockdep class file-scoped

Commit b546be0db955 ("gpio: tegra: Get rid of all file scoped global
variables") moved all file scoped variables into the driver-private
structure to allow potentially multiple instances of the driver. The
change also included turning the lockdep class into a driver-private
field, which doesn't work and produces error messages such as this:

[    0.142310] BUG: key ffff8000fb3f7ab0 not in .data!

Make the lockdep class file-scoped again to fix this issue.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tegra.c