summaryrefslogtreecommitdiff
path: root/net/rfkill/rfkill-gpio.c
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2014-05-15 03:30:43 (GMT)
committerBeomho Seo <beomho.seo@samsung.com>2014-05-15 03:32:39 (GMT)
commit87f73e89289e9115df906ce671c19f9054a99cac (patch)
tree184406079efebf761b295fb3662527a0b94dc69a /net/rfkill/rfkill-gpio.c
parent53b50ebcc6a5e4cdabf920d1d72ad855ca650909 (diff)
downloadlinux-3.10-87f73e89289e9115df906ce671c19f9054a99cac.zip
linux-3.10-87f73e89289e9115df906ce671c19f9054a99cac.tar.gz
linux-3.10-87f73e89289e9115df906ce671c19f9054a99cac.tar.bz2
WORKAROUND: net: rfkill-gpio: fix initial state as blockedrefs/changes/76/21076/1
WORKAROUND: Temporary worgaround for bluetooth enable. Initial state is not set as blocked, so it is always unblocked after booting. This patch fixes initual state of rfkill-gpio as blocked. Change-Id: Ide67763d10e2ef3ea75fe58d917cd725b26e2cab Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Diffstat (limited to 'net/rfkill/rfkill-gpio.c')
-rw-r--r--net/rfkill/rfkill-gpio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/rfkill/rfkill-gpio.c b/net/rfkill/rfkill-gpio.c
index ad5c956..212a77f 100644
--- a/net/rfkill/rfkill-gpio.c
+++ b/net/rfkill/rfkill-gpio.c
@@ -164,12 +164,16 @@ static int rfkill_gpio_probe(struct platform_device *pdev)
if (!rfkill->rfkill_dev)
return -ENOMEM;
+ rfkill_init_sw_state(rfkill->rfkill_dev, false);
+
ret = rfkill_register(rfkill->rfkill_dev);
if (ret < 0)
return ret;
platform_set_drvdata(pdev, rfkill);
+ rfkill_set_sw_state(rfkill->rfkill_dev, true);
+
dev_info(&pdev->dev, "%s device registered.\n", rfkill->name);
return 0;