Skip to content

Commit

Permalink
ath6kl: Remove ath6kldev_setup_msg_bndl()
Browse files Browse the repository at this point in the history
Use appropriate hif function directly.

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
  • Loading branch information
Vasanthakumar Thiagarajan authored and Kalle Valo committed Aug 9, 2011
1 parent 348a8fb commit ca06cad
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath6kl/htc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2175,7 +2175,7 @@ static void htc_setup_msg_bndl(struct htc_target *target)
target->msg_per_bndl_max = min(HTC_HOST_MAX_MSG_PER_BUNDLE,
target->msg_per_bndl_max);

if (ath6kldev_setup_msg_bndl(target->dev, target->msg_per_bndl_max)) {
if (ath6kl_hif_enable_scatter(target->dev->ar, scat_info)) {
target->msg_per_bndl_max = 0;
return;
}
Expand Down
5 changes: 0 additions & 5 deletions drivers/net/wireless/ath/ath6kl/htc_hif.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,6 @@ int ath6kldev_submit_scat_req(struct ath6kl_device *dev,
return status;
}

int ath6kldev_setup_msg_bndl(struct ath6kl_device *dev, int max_msg_per_trans)
{
return ath6kl_hif_enable_scatter(dev->ar, &dev->hif_scat_info);
}

static int ath6kldev_proc_counter_intr(struct ath6kl_device *dev)
{
u8 counter_int_status;
Expand Down
1 change: 0 additions & 1 deletion drivers/net/wireless/ath/ath6kl/htc_hif.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ int ath6kldev_rw_comp_handler(void *context, int status);
int ath6kldev_intr_bh_handler(struct ath6kl *ar);

/* Scatter Function and Definitions */
int ath6kldev_setup_msg_bndl(struct ath6kl_device *dev, int max_msg_per_xfer);
int ath6kldev_submit_scat_req(struct ath6kl_device *dev,
struct hif_scatter_req *scat_req, bool read);

Expand Down

0 comments on commit ca06cad

Please sign in to comment.