b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
@@ -837,21 +837,21 @@ static int atl1c_sw_init(struct atl1c_adapter *adapter)
static inline void atl1c_clean_buffer(struct pci_dev *pdev,
struct atl1c_buffer *buffer_info)
{
- u16 pci_driection;
+ u16 pci_direction;
if (buffer_info->flags & ATL1C_BUFFER_FREE)
return;
if (buffer_info->dma) {
if (buffer_info->flags & ATL1C_PCIMAP_FROMDEVICE)
- pci_driection = PCI_DMA_FROMDEVICE;
+ pci_direction = PCI_DMA_FROMDEVICE;
else
- pci_driection = PCI_DMA_TODEVICE;
+ pci_direction = PCI_DMA_TODEVICE;
if (buffer_info->flags & ATL1C_PCIMAP_SINGLE)
pci_unmap_single(pdev, buffer_info->dma,
- buffer_info->length, pci_driection);
+ buffer_info->length, pci_direction);
else if (buffer_info->flags & ATL1C_PCIMAP_PAGE)
pci_unmap_page(pdev, buffer_info->dma,
- buffer_info->length, pci_driection);
+ buffer_info->length, pci_direction);
}
if (buffer_info->skb)
dev_consume_skb_any(buffer_info->skb);