Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363326
b: refs/heads/master
c: 01d0a9b
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and Greg Kroah-Hartman committed Mar 11, 2013
1 parent cefe9f4 commit 71e40ca
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0f1bf4baf61ca426a210bf3c98263957fa474158
refs/heads/master: 01d0a9b474661831cd1ee5d88d5ee3fb80b55a7a
27 changes: 16 additions & 11 deletions trunk/drivers/staging/slicoss/slicoss.c
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,8 @@ static void slic_link_upr_complete(struct adapter *adapter, u32 isr)
if ((isr & ISR_UPCERR) || (isr & ISR_UPCBSY)) {
struct slic_shmem *pshmem;

pshmem = (struct slic_shmem *)adapter->phys_shmem;
pshmem = (struct slic_shmem *)(unsigned long)
adapter->phys_shmem;
#if BITS_PER_LONG == 64
slic_upr_queue_request(adapter,
SLIC_UPR_RLSR,
Expand Down Expand Up @@ -1631,10 +1632,11 @@ static int slic_rcvqueue_fill(struct adapter *adapter)
#endif
skb = alloc_skb(SLIC_RCVQ_RCVBUFSIZE, GFP_ATOMIC);
if (skb) {
paddr = (void *)pci_map_single(adapter->pcidev,
skb->data,
SLIC_RCVQ_RCVBUFSIZE,
PCI_DMA_FROMDEVICE);
paddr = (void *)(unsigned long)
pci_map_single(adapter->pcidev,
skb->data,
SLIC_RCVQ_RCVBUFSIZE,
PCI_DMA_FROMDEVICE);
paddrl = SLIC_GET_ADDR_LOW(paddr);
paddrh = SLIC_GET_ADDR_HIGH(paddr);

Expand Down Expand Up @@ -1781,8 +1783,9 @@ static u32 slic_rcvqueue_reinsert(struct adapter *adapter, struct sk_buff *skb)
struct slic_rcvbuf *rcvbuf = (struct slic_rcvbuf *)skb->head;
struct device *dev;

paddr = (void *)pci_map_single(adapter->pcidev, skb->head,
SLIC_RCVQ_RCVBUFSIZE, PCI_DMA_FROMDEVICE);
paddr = (void *)(unsigned long)
pci_map_single(adapter->pcidev, skb->head,
SLIC_RCVQ_RCVBUFSIZE, PCI_DMA_FROMDEVICE);
rcvbuf->status = 0;
skb->next = NULL;

Expand Down Expand Up @@ -2279,7 +2282,7 @@ static void slic_link_event_handler(struct adapter *adapter)
return;
}

pshmem = (struct slic_shmem *)adapter->phys_shmem;
pshmem = (struct slic_shmem *)(unsigned long)adapter->phys_shmem;

#if BITS_PER_LONG == 64
status = slic_upr_request(adapter,
Expand All @@ -2306,7 +2309,7 @@ static void slic_init_cleanup(struct adapter *adapter)
sizeof(struct slic_shmem),
adapter->pshmem, adapter->phys_shmem);
adapter->pshmem = NULL;
adapter->phys_shmem = (dma_addr_t) NULL;
adapter->phys_shmem = (dma_addr_t)(unsigned long)NULL;
}

if (adapter->pingtimerset) {
Expand Down Expand Up @@ -2880,7 +2883,8 @@ static int slic_if_init(struct adapter *adapter)
mdelay(1);

if (!adapter->isp_initialized) {
pshmem = (struct slic_shmem *)adapter->phys_shmem;
pshmem = (struct slic_shmem *)(unsigned long)
adapter->phys_shmem;

spin_lock_irqsave(&adapter->bit64reglock.lock,
adapter->bit64reglock.flags);
Expand Down Expand Up @@ -3282,7 +3286,8 @@ static int slic_card_init(struct sliccard *card, struct adapter *adapter)
}
slic_reg32_write(&slic_regs->slic_icr, ICR_INT_OFF, FLUSH);
mdelay(1);
pshmem = (struct slic_shmem *)adapter->phys_shmem;
pshmem = (struct slic_shmem *)(unsigned long)
adapter->phys_shmem;

spin_lock_irqsave(&adapter->bit64reglock.lock,
adapter->bit64reglock.flags);
Expand Down

0 comments on commit 71e40ca

Please sign in to comment.