diff options
Diffstat (limited to 'drivers/uwb/wlp/eda.c')
-rw-r--r-- | drivers/uwb/wlp/eda.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/drivers/uwb/wlp/eda.c b/drivers/uwb/wlp/eda.c index 10985fa233cc..69e020039718 100644 --- a/drivers/uwb/wlp/eda.c +++ b/drivers/uwb/wlp/eda.c | |||
@@ -51,9 +51,7 @@ | |||
51 | * the tag and address of the transmitting neighbor. | 51 | * the tag and address of the transmitting neighbor. |
52 | */ | 52 | */ |
53 | 53 | ||
54 | #define D_LOCAL 5 | ||
55 | #include <linux/netdevice.h> | 54 | #include <linux/netdevice.h> |
56 | #include <linux/uwb/debug.h> | ||
57 | #include <linux/etherdevice.h> | 55 | #include <linux/etherdevice.h> |
58 | #include <linux/wlp.h> | 56 | #include <linux/wlp.h> |
59 | #include "wlp-internal.h" | 57 | #include "wlp-internal.h" |
@@ -304,7 +302,6 @@ int wlp_eda_for_virtual(struct wlp_eda *eda, | |||
304 | { | 302 | { |
305 | int result = 0; | 303 | int result = 0; |
306 | struct wlp *wlp = container_of(eda, struct wlp, eda); | 304 | struct wlp *wlp = container_of(eda, struct wlp, eda); |
307 | struct device *dev = &wlp->rc->uwb_dev.dev; | ||
308 | struct wlp_eda_node *itr; | 305 | struct wlp_eda_node *itr; |
309 | unsigned long flags; | 306 | unsigned long flags; |
310 | int found = 0; | 307 | int found = 0; |
@@ -313,26 +310,14 @@ int wlp_eda_for_virtual(struct wlp_eda *eda, | |||
313 | list_for_each_entry(itr, &eda->cache, list_node) { | 310 | list_for_each_entry(itr, &eda->cache, list_node) { |
314 | if (!memcmp(itr->virt_addr, virt_addr, | 311 | if (!memcmp(itr->virt_addr, virt_addr, |
315 | sizeof(itr->virt_addr))) { | 312 | sizeof(itr->virt_addr))) { |
316 | d_printf(6, dev, "EDA: looking for %pM hit %02x:%02x " | ||
317 | "wss %p tag 0x%02x state %u\n", | ||
318 | virt_addr, | ||
319 | itr->dev_addr.data[1], | ||
320 | itr->dev_addr.data[0], itr->wss, | ||
321 | itr->tag, itr->state); | ||
322 | result = (*function)(wlp, itr, priv); | 313 | result = (*function)(wlp, itr, priv); |
323 | *dev_addr = itr->dev_addr; | 314 | *dev_addr = itr->dev_addr; |
324 | found = 1; | 315 | found = 1; |
325 | break; | 316 | break; |
326 | } else | 317 | } |
327 | d_printf(6, dev, "EDA: looking for %pM against %pM miss\n", | ||
328 | virt_addr, itr->virt_addr); | ||
329 | } | 318 | } |
330 | if (!found) { | 319 | if (!found) |
331 | if (printk_ratelimit()) | ||
332 | dev_err(dev, "EDA: Eth addr %pM not found.\n", | ||
333 | virt_addr); | ||
334 | result = -ENODEV; | 320 | result = -ENODEV; |
335 | } | ||
336 | spin_unlock_irqrestore(&eda->lock, flags); | 321 | spin_unlock_irqrestore(&eda->lock, flags); |
337 | return result; | 322 | return result; |
338 | } | 323 | } |