aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/atmel.c
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
commitc71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch)
treeecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/net/wireless/atmel.c
parentea53c912f8a86a8567697115b6a0d8152beee5c8 (diff)
parent6a00f206debf8a5c8899055726ad127dbeeed098 (diff)
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts: litmus/sched_cedf.c
Diffstat (limited to 'drivers/net/wireless/atmel.c')
-rw-r--r--drivers/net/wireless/atmel.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/wireless/atmel.c b/drivers/net/wireless/atmel.c
index c8f7090b27d3..39a11e8af4fa 100644
--- a/drivers/net/wireless/atmel.c
+++ b/drivers/net/wireless/atmel.c
@@ -439,7 +439,7 @@ static u8 mac_reader[] = {
439}; 439};
440 440
441struct atmel_private { 441struct atmel_private {
442 void *card; /* Bus dependent stucture varies for PCcard */ 442 void *card; /* Bus dependent structure varies for PCcard */
443 int (*present_callback)(void *); /* And callback which uses it */ 443 int (*present_callback)(void *); /* And callback which uses it */
444 char firmware_id[32]; 444 char firmware_id[32];
445 AtmelFWType firmware_type; 445 AtmelFWType firmware_type;
@@ -1161,7 +1161,7 @@ static irqreturn_t service_interrupt(int irq, void *dev_id)
1161 struct atmel_private *priv = netdev_priv(dev); 1161 struct atmel_private *priv = netdev_priv(dev);
1162 u8 isr; 1162 u8 isr;
1163 int i = -1; 1163 int i = -1;
1164 static u8 irq_order[] = { 1164 static const u8 irq_order[] = {
1165 ISR_OUT_OF_RANGE, 1165 ISR_OUT_OF_RANGE,
1166 ISR_RxCOMPLETE, 1166 ISR_RxCOMPLETE,
1167 ISR_TxCOMPLETE, 1167 ISR_TxCOMPLETE,
@@ -3771,7 +3771,9 @@ static int probe_atmel_card(struct net_device *dev)
3771 3771
3772 if (rc) { 3772 if (rc) {
3773 if (dev->dev_addr[0] == 0xFF) { 3773 if (dev->dev_addr[0] == 0xFF) {
3774 u8 default_mac[] = {0x00, 0x04, 0x25, 0x00, 0x00, 0x00}; 3774 static const u8 default_mac[] = {
3775 0x00, 0x04, 0x25, 0x00, 0x00, 0x00
3776 };
3775 printk(KERN_ALERT "%s: *** Invalid MAC address. UPGRADE Firmware ****\n", dev->name); 3777 printk(KERN_ALERT "%s: *** Invalid MAC address. UPGRADE Firmware ****\n", dev->name);
3776 memcpy(dev->dev_addr, default_mac, 6); 3778 memcpy(dev->dev_addr, default_mac, 6);
3777 } 3779 }
@@ -3893,7 +3895,7 @@ static int reset_atmel_card(struct net_device *dev)
3893 3895
3894 This routine is also responsible for initialising some 3896 This routine is also responsible for initialising some
3895 hardware-specific fields in the atmel_private structure, 3897 hardware-specific fields in the atmel_private structure,
3896 including a copy of the firmware's hostinfo stucture 3898 including a copy of the firmware's hostinfo structure
3897 which is the route into the rest of the firmware datastructures. */ 3899 which is the route into the rest of the firmware datastructures. */
3898 3900
3899 struct atmel_private *priv = netdev_priv(dev); 3901 struct atmel_private *priv = netdev_priv(dev);