aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/decl.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-05-25 13:13:25 -0400
committerJohn W. Linville <linville@tuxdriver.com>2007-06-11 14:28:40 -0400
commit7732ca45c68f893689a8c0d8c6e2eb2bfefbc087 (patch)
treeb894177055e35cd426cf36d923adfd8985e4e9ed /drivers/net/wireless/libertas/decl.h
parent0681f989357416d7ef28ebaea4151ce70a6ae21c (diff)
[PATCH] libertas: call SET_NETDEV_DEV from common code
Move usage of SET_NETDEV_DEV into common code since it has nothing to do with bus-specific devices. Also fixes a bug where the mesh device was getting SET_NETDEV_DEV called after register_netdevice, resulting in no 'device' link in /sys/class/net/mshX/. Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/decl.h')
-rw-r--r--drivers/net/wireless/libertas/decl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/decl.h b/drivers/net/wireless/libertas/decl.h
index d6fcb339f5c2..40f56bb1eac8 100644
--- a/drivers/net/wireless/libertas/decl.h
+++ b/drivers/net/wireless/libertas/decl.h
@@ -6,6 +6,8 @@
6#ifndef _WLAN_DECL_H_ 6#ifndef _WLAN_DECL_H_
7#define _WLAN_DECL_H_ 7#define _WLAN_DECL_H_
8 8
9#include <linux/device.h>
10
9#include "defs.h" 11#include "defs.h"
10 12
11/** Function Prototype Declaration */ 13/** Function Prototype Declaration */
@@ -79,10 +81,10 @@ int libertas_init_fw(wlan_private * priv, char *fw_name);
79/* main.c */ 81/* main.c */
80struct chan_freq_power *libertas_get_region_cfp_table(u8 region, u8 band, 82struct chan_freq_power *libertas_get_region_cfp_table(u8 region, u8 band,
81 int *cfp_no); 83 int *cfp_no);
82wlan_private *libertas_add_card(void *card); 84wlan_private *libertas_add_card(void *card, struct device *dmdev);
83int libertas_activate_card(wlan_private *priv, char *fw_name); 85int libertas_activate_card(wlan_private *priv, char *fw_name);
84int libertas_remove_card(wlan_private *priv); 86int libertas_remove_card(wlan_private *priv);
85int libertas_add_mesh(wlan_private *priv); 87int libertas_add_mesh(wlan_private *priv, struct device *dev);
86void libertas_remove_mesh(wlan_private *priv); 88void libertas_remove_mesh(wlan_private *priv);
87 89
88 90