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>
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;