summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorBeomho Seo <beomho.seo@samsung.com>2014-08-08 17:07:23 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 12:00:32 +0900
commit8e2adc3b549ccc5e3a886a00dd2b5d9a8ebe2c83 (patch)
treec1b379d70fe1fbb31f82f98e7ad8da51d85ba91f /net
parent088139392f261fd749e7e6073b861dc283079a84 (diff)
downloadlinux-3.10-8e2adc3b549ccc5e3a886a00dd2b5d9a8ebe2c83.tar.gz
linux-3.10-8e2adc3b549ccc5e3a886a00dd2b5d9a8ebe2c83.tar.bz2
linux-3.10-8e2adc3b549ccc5e3a886a00dd2b5d9a8ebe2c83.zip
net: rfkill: add line for parsing shutdown gpio prooerty
This patch add line in rfkill_gpio_dt_probe function. "shutdown-gpio" property is added on device node already. Change-Id: I4c6861178cafa64d2017a26f5dbe9e311db2004c Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
Diffstat (limited to 'net')
-rw-r--r--net/rfkill/rfkill-gpio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/rfkill/rfkill-gpio.c b/net/rfkill/rfkill-gpio.c
index 99c778cb35d..ad5c956f1ea 100644
--- a/net/rfkill/rfkill-gpio.c
+++ b/net/rfkill/rfkill-gpio.c
@@ -79,6 +79,7 @@ static int rfkill_gpio_dt_probe(struct device *dev,
rfkill->name = np->name;
of_property_read_string(np, "rfkill-name", &rfkill->name);
of_property_read_u32(np, "rfkill-type", &rfkill->type);
+ rfkill->shutdown_gpio = of_get_named_gpio(np, "shutdown-gpio", 0);
return 0;
}