diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/atm/lanai.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/atm/lanai.c')
-rw-r--r-- | drivers/atm/lanai.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/atm/lanai.c b/drivers/atm/lanai.c index cbe15a86c669..4e8ba56f75d3 100644 --- a/drivers/atm/lanai.c +++ b/drivers/atm/lanai.c | |||
@@ -1255,7 +1255,7 @@ static inline void lanai_endtx(struct lanai_dev *lanai, | |||
1255 | /* | 1255 | /* |
1256 | * Since the "butt register" is a shared resounce on the card we | 1256 | * Since the "butt register" is a shared resounce on the card we |
1257 | * serialize all accesses to it through this spinlock. This is | 1257 | * serialize all accesses to it through this spinlock. This is |
1258 | * mostly just paranoia sicne the register is rarely "busy" anyway | 1258 | * mostly just paranoia since the register is rarely "busy" anyway |
1259 | * but is needed for correctness. | 1259 | * but is needed for correctness. |
1260 | */ | 1260 | */ |
1261 | spin_lock(&lanai->endtxlock); | 1261 | spin_lock(&lanai->endtxlock); |
@@ -1990,7 +1990,7 @@ static int __devinit lanai_pci_start(struct lanai_dev *lanai) | |||
1990 | 1990 | ||
1991 | /* | 1991 | /* |
1992 | * We _can_ use VCI==0 for normal traffic, but only for UBR (or we'll | 1992 | * We _can_ use VCI==0 for normal traffic, but only for UBR (or we'll |
1993 | * get a CBRZERO interrupt), and we can use it only if noone is receiving | 1993 | * get a CBRZERO interrupt), and we can use it only if no one is receiving |
1994 | * AAL0 traffic (since they will use the same queue) - according to the | 1994 | * AAL0 traffic (since they will use the same queue) - according to the |
1995 | * docs we shouldn't even use it for AAL0 traffic | 1995 | * docs we shouldn't even use it for AAL0 traffic |
1996 | */ | 1996 | */ |
@@ -2241,11 +2241,8 @@ static int __devinit lanai_dev_open(struct atm_dev *atmdev) | |||
2241 | memcpy(atmdev->esi, eeprom_mac(lanai), ESI_LEN); | 2241 | memcpy(atmdev->esi, eeprom_mac(lanai), ESI_LEN); |
2242 | lanai_timed_poll_start(lanai); | 2242 | lanai_timed_poll_start(lanai); |
2243 | printk(KERN_NOTICE DEV_LABEL "(itf %d): rev.%d, base=0x%lx, irq=%u " | 2243 | printk(KERN_NOTICE DEV_LABEL "(itf %d): rev.%d, base=0x%lx, irq=%u " |
2244 | "(%02X-%02X-%02X-%02X-%02X-%02X)\n", lanai->number, | 2244 | "(%pMF)\n", lanai->number, (int) lanai->pci->revision, |
2245 | (int) lanai->pci->revision, (unsigned long) lanai->base, | 2245 | (unsigned long) lanai->base, lanai->pci->irq, atmdev->esi); |
2246 | lanai->pci->irq, | ||
2247 | atmdev->esi[0], atmdev->esi[1], atmdev->esi[2], | ||
2248 | atmdev->esi[3], atmdev->esi[4], atmdev->esi[5]); | ||
2249 | printk(KERN_NOTICE DEV_LABEL "(itf %d): LANAI%s, serialno=%u(0x%X), " | 2246 | printk(KERN_NOTICE DEV_LABEL "(itf %d): LANAI%s, serialno=%u(0x%X), " |
2250 | "board_rev=%d\n", lanai->number, | 2247 | "board_rev=%d\n", lanai->number, |
2251 | lanai->type==lanai2 ? "2" : "HB", (unsigned int) lanai->serialno, | 2248 | lanai->type==lanai2 ? "2" : "HB", (unsigned int) lanai->serialno, |
@@ -2591,7 +2588,7 @@ static int __devinit lanai_init_one(struct pci_dev *pci, | |||
2591 | return -ENOMEM; | 2588 | return -ENOMEM; |
2592 | } | 2589 | } |
2593 | 2590 | ||
2594 | atmdev = atm_dev_register(DEV_LABEL, &ops, -1, NULL); | 2591 | atmdev = atm_dev_register(DEV_LABEL, &pci->dev, &ops, -1, NULL); |
2595 | if (atmdev == NULL) { | 2592 | if (atmdev == NULL) { |
2596 | printk(KERN_ERR DEV_LABEL | 2593 | printk(KERN_ERR DEV_LABEL |
2597 | ": couldn't register atm device!\n"); | 2594 | ": couldn't register atm device!\n"); |