From: Jan Altensen Date: Sat, 17 Jul 2021 11:00:01 +0000 (+0200) Subject: remove calls to pm_usage_cnt X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;ds=sidebyside;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_rtk_btusb.git remove calls to pm_usage_cnt * our kernel does not have it Change-Id: Idbfc727b0f8657ec510dac9015d27752c428f3df --- diff --git a/rtk_btusb.c b/rtk_btusb.c index 0517624..0ab06ea 100644 --- a/rtk_btusb.c +++ b/rtk_btusb.c @@ -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)