remove calls to pm_usage_cnt lineage-18.1 lineage-19.1
authorJan Altensen <info@stricted.net>
Sat, 17 Jul 2021 11:00:01 +0000 (13:00 +0200)
committerAaron Kling <webgeek1234@gmail.com>
Sun, 18 Jul 2021 20:23:55 +0000 (15:23 -0500)
 * our kernel does not have it

Change-Id: Idbfc727b0f8657ec510dac9015d27752c428f3df

rtk_btusb.c

index 051762448c62b507132df8a29d8320eb337cdc0f..0ab06ea36f478834488584c5b91bd9e0ff88f10b 100644 (file)
@@ -3146,8 +3146,8 @@ static int btusb_open(struct hci_dev *hdev)
     struct btusb_data *data = GET_DRV_DATA(hdev);
     int err = 0;
 
-    RTKBT_INFO("%s: Start, PM usage count %d", __func__,
-            atomic_read(&(data->intf->pm_usage_cnt)));
+//    RTKBT_INFO("%s: Start, PM usage count %d", __func__,
+//            atomic_read(&(data->intf->pm_usage_cnt)));
 
     err = usb_autopm_get_interface(data->intf);
     if (err < 0)
@@ -3177,16 +3177,16 @@ static int btusb_open(struct hci_dev *hdev)
 
 done:
     usb_autopm_put_interface(data->intf);
-    RTKBT_INFO("%s: End, PM usage count %d", __func__,
-            atomic_read(&(data->intf->pm_usage_cnt)));
+//    RTKBT_INFO("%s: End, PM usage count %d", __func__,
+//            atomic_read(&(data->intf->pm_usage_cnt)));
     return 0;
 
 failed:
     clear_bit(BTUSB_INTR_RUNNING, &data->flags);
     clear_bit(HCI_RUNNING, &hdev->flags);
     usb_autopm_put_interface(data->intf);
-    RTKBT_ERR("%s: Failed, PM usage count %d", __func__,
-            atomic_read(&(data->intf->pm_usage_cnt)));
+//    RTKBT_ERR("%s: Failed, PM usage count %d", __func__,
+//            atomic_read(&(data->intf->pm_usage_cnt)));
     return err;
 }
 
@@ -3699,8 +3699,8 @@ static void btusb_waker(struct work_struct *work)
     struct btusb_data *data = container_of(work, struct btusb_data, waker);
     int err;
 
-    RTKBT_DBG("%s: PM usage count %d", __func__,
-            atomic_read(&data->intf->pm_usage_cnt));
+//    RTKBT_DBG("%s: PM usage count %d", __func__,
+//            atomic_read(&data->intf->pm_usage_cnt));
 
     err = usb_autopm_get_interface(data->intf);
     if (err < 0)