net: rfkill: gpio: hard-code the gpio names
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 1 Apr 2014 14:02:56 +0000 (17:02 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 11 Apr 2014 07:29:22 +0000 (09:29 +0200)
commit781d4e0fb73379e251d1ac1562fe9892da711760
treefc6d0d0e32d5b18f271e98ea04fc1ba015faf289
parent41d09df1e08bf18316d08cb73c5d08b5346c0c5d
net: rfkill: gpio: hard-code the gpio names

There is no need to dynamically generate the names. This
will fix a static checker warning..

net/rfkill/rfkill-gpio.c:144 rfkill_gpio_probe()
    warn: variable dereferenced before check 'rfkill->name'

Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/rfkill/rfkill-gpio.c