aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/prism54/oid_mgt.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2007-02-20 11:28:42 -0500
committerJeff Garzik <jeff@garzik.org>2007-02-20 11:28:42 -0500
commit6606e17a7f1c3bc1b1e83d0c517f11d094e55bf1 (patch)
tree83f20d0d3c12d9db75fdfc74454d781d2e4ea590 /drivers/net/wireless/prism54/oid_mgt.c
parent6aab44475a1355365f0a24abe6f8eb32185a701e (diff)
parentb312362be6d9155b66f3a26d9159e0a680fbd6c5 (diff)
Merge branch 'upstream-jgarzik' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 into upstream
Diffstat (limited to 'drivers/net/wireless/prism54/oid_mgt.c')
-rw-r--r--drivers/net/wireless/prism54/oid_mgt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/prism54/oid_mgt.c b/drivers/net/wireless/prism54/oid_mgt.c
index e6cf9df2c20..42780320cd5 100644
--- a/drivers/net/wireless/prism54/oid_mgt.c
+++ b/drivers/net/wireless/prism54/oid_mgt.c
@@ -16,6 +16,8 @@
*
*/
+#include <linux/kernel.h>
+
#include "prismcompat.h"
#include "islpci_dev.h"
#include "islpci_mgt.h"
@@ -692,7 +694,7 @@ mgt_update_addr(islpci_private *priv)
return ret;
}
-#define VEC_SIZE(a) (sizeof(a)/sizeof(a[0]))
+#define VEC_SIZE(a) ARRAY_SIZE(a)
int
mgt_commit(islpci_private *priv)