diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-10-05 09:56:56 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-10-07 18:21:51 -0400 |
commit | a0c234fe8972aa6a5afe2db6c27a3f5d5fbd88e7 (patch) | |
tree | a47cdeec7101d6b06537174b3d41358a572ebd1f /net/bluetooth/a2mp.c | |
parent | fa4ebc66c432d0e0ec947cb754d4144c4a681f28 (diff) |
Bluetooth: AMP: Factor out phylink_add
Add direction parameter to phylink_add since it is anyway set later.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth/a2mp.c')
-rw-r--r-- | net/bluetooth/a2mp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/a2mp.c b/net/bluetooth/a2mp.c index 88a4b583d21..3ff4dc928bf 100644 --- a/net/bluetooth/a2mp.c +++ b/net/bluetooth/a2mp.c | |||
@@ -417,7 +417,7 @@ static int a2mp_getampassoc_rsp(struct amp_mgr *mgr, struct sk_buff *skb, | |||
417 | if (!hdev) | 417 | if (!hdev) |
418 | return -EINVAL; | 418 | return -EINVAL; |
419 | 419 | ||
420 | hcon = phylink_add(hdev, mgr, rsp->id); | 420 | hcon = phylink_add(hdev, mgr, rsp->id, true); |
421 | if (!hcon) | 421 | if (!hcon) |
422 | goto done; | 422 | goto done; |
423 | 423 | ||
@@ -487,7 +487,7 @@ static int a2mp_createphyslink_req(struct amp_mgr *mgr, struct sk_buff *skb, | |||
487 | amp_ctrl_put(ctrl); | 487 | amp_ctrl_put(ctrl); |
488 | } | 488 | } |
489 | 489 | ||
490 | hcon = phylink_add(hdev, mgr, req->local_id); | 490 | hcon = phylink_add(hdev, mgr, req->local_id, false); |
491 | if (hcon) { | 491 | if (hcon) { |
492 | amp_accept_phylink(hdev, mgr, hcon); | 492 | amp_accept_phylink(hdev, mgr, hcon); |
493 | rsp.status = A2MP_STATUS_SUCCESS; | 493 | rsp.status = A2MP_STATUS_SUCCESS; |