From f7839fb13d72d129f82adbd5680da63c40dcbdaa Mon Sep 17 00:00:00 2001 From: Jan Altensen Date: Sat, 17 Jul 2021 13:00:01 +0200 Subject: [PATCH] remove calls to pm_usage_cnt * our kernel does not have it Change-Id: Idbfc727b0f8657ec510dac9015d27752c428f3df --- rtk_btusb.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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) -- 2.20.1