mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 23:28:55 +00:00
ath6kl: Remove obselete USB device related checks
These checks are no longer needed as the necessary USB support is already present in the driver. Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
This commit is contained in:
parent
307749406d
commit
cf0dfa1330
2 changed files with 1 additions and 14 deletions
|
@ -696,11 +696,6 @@ int ath6kl_hif_setup(struct ath6kl_device *dev)
|
||||||
ath6kl_dbg(ATH6KL_DBG_HIF, "hif block size %d mbox addr 0x%x\n",
|
ath6kl_dbg(ATH6KL_DBG_HIF, "hif block size %d mbox addr 0x%x\n",
|
||||||
dev->htc_cnxt->block_sz, dev->ar->mbox_info.htc_addr);
|
dev->htc_cnxt->block_sz, dev->ar->mbox_info.htc_addr);
|
||||||
|
|
||||||
/* usb doesn't support enabling interrupts */
|
|
||||||
/* FIXME: remove check once USB support is implemented */
|
|
||||||
if (dev->ar->hif_type == ATH6KL_HIF_TYPE_USB)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
status = ath6kl_hif_disable_intrs(dev);
|
status = ath6kl_hif_disable_intrs(dev);
|
||||||
|
|
||||||
fail_setup:
|
fail_setup:
|
||||||
|
|
|
@ -2656,12 +2656,6 @@ static int ath6kl_htc_mbox_wait_target(struct htc_target *target)
|
||||||
struct htc_service_connect_resp resp;
|
struct htc_service_connect_resp resp;
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
/* FIXME: remove once USB support is implemented */
|
|
||||||
if (target->dev->ar->hif_type == ATH6KL_HIF_TYPE_USB) {
|
|
||||||
ath6kl_err("HTC doesn't support USB yet. Patience!\n");
|
|
||||||
return -EOPNOTSUPP;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* we should be getting 1 control message that the target is ready */
|
/* we should be getting 1 control message that the target is ready */
|
||||||
packet = htc_wait_for_ctrl_msg(target);
|
packet = htc_wait_for_ctrl_msg(target);
|
||||||
|
|
||||||
|
@ -2891,8 +2885,6 @@ static void ath6kl_htc_mbox_cleanup(struct htc_target *target)
|
||||||
{
|
{
|
||||||
struct htc_packet *packet, *tmp_packet;
|
struct htc_packet *packet, *tmp_packet;
|
||||||
|
|
||||||
/* FIXME: remove check once USB support is implemented */
|
|
||||||
if (target->dev->ar->hif_type != ATH6KL_HIF_TYPE_USB)
|
|
||||||
ath6kl_hif_cleanup_scatter(target->dev->ar);
|
ath6kl_hif_cleanup_scatter(target->dev->ar);
|
||||||
|
|
||||||
list_for_each_entry_safe(packet, tmp_packet,
|
list_for_each_entry_safe(packet, tmp_packet,
|
||||||
|
|
Loading…
Add table
Reference in a new issue