diff options
author | Beomho Seo <beomho.seo@samsung.com> | 2014-08-08 17:07:23 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 12:00:32 +0900 |
commit | 8e2adc3b549ccc5e3a886a00dd2b5d9a8ebe2c83 (patch) | |
tree | c1b379d70fe1fbb31f82f98e7ad8da51d85ba91f /net | |
parent | 088139392f261fd749e7e6073b861dc283079a84 (diff) | |
download | linux-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.c | 1 |
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; } |