Loading drivers/bluetooth/bluetooth-power.c +10 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ #include <linux/slab.h> #include <linux/regulator/consumer.h> #include <linux/clk.h> #include <linux/of_device.h> #if defined(CONFIG_CNSS) #include <net/cnss.h> Loading Loading @@ -614,6 +615,8 @@ static int bt_power_populate_dt_pinfo(struct platform_device *pdev) static int bt_power_probe(struct platform_device *pdev) { int ret = 0; const struct of_device_id *of_id = of_match_device(bt_power_match_table, &pdev->dev); dev_dbg(&pdev->dev, "%s\n", __func__); Loading Loading @@ -654,6 +657,13 @@ static int bt_power_probe(struct platform_device *pdev) btpdev = pdev; if (of_id) { if (strcmp(of_id->compatible, "qca,qca6174") == 0) { bluetooth_toggle_radio(pdev->dev.platform_data, 0); bluetooth_toggle_radio(pdev->dev.platform_data, 1); } } return 0; free_pdata: Loading Loading
drivers/bluetooth/bluetooth-power.c +10 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ #include <linux/slab.h> #include <linux/regulator/consumer.h> #include <linux/clk.h> #include <linux/of_device.h> #if defined(CONFIG_CNSS) #include <net/cnss.h> Loading Loading @@ -614,6 +615,8 @@ static int bt_power_populate_dt_pinfo(struct platform_device *pdev) static int bt_power_probe(struct platform_device *pdev) { int ret = 0; const struct of_device_id *of_id = of_match_device(bt_power_match_table, &pdev->dev); dev_dbg(&pdev->dev, "%s\n", __func__); Loading Loading @@ -654,6 +657,13 @@ static int bt_power_probe(struct platform_device *pdev) btpdev = pdev; if (of_id) { if (strcmp(of_id->compatible, "qca,qca6174") == 0) { bluetooth_toggle_radio(pdev->dev.platform_data, 0); bluetooth_toggle_radio(pdev->dev.platform_data, 1); } } return 0; free_pdata: Loading