summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;