CHROMIUM: usb: dwc3: rockchip: Check for plug/unplug events on resume
[firefly-linux-kernel-4.4.55.git] / drivers / headset_observe / rockchip_headset_core.c
index 0ec6708ab743e64b5dc00c65140cd49d7b6bb0a0..01b7b4e2f1aa22a9c09300eee8d6228e688ba1a0 100755 (executable)
@@ -123,6 +123,10 @@ static int rockchip_headset_probe(struct platform_device *pdev)
        }
        #endif
 
+       ret = of_property_read_u32(node, "rockchip,headset_wakeup", &pdata->headset_wakeup);
+       if (ret < 0)
+               pdata->headset_wakeup = 1;
+
        if(pdata->chan != NULL)
        {//hook adc mode
                printk("%s() headset have hook adc mode\n",__FUNCTION__);