summaryrefslogtreecommitdiff
path: root/drivers/staging/xillybus/xillybus_pcie.c
diff options
context:
space:
mode:
authorEli Billauer <eli.billauer@gmail.com>2013-07-31 11:22:43 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-31 17:41:56 -0700
commit7ee9ded220199f3be0b5d587ff9e2a1fdf7b6e2c (patch)
tree6e3e732e598ccfd5cc82f650cafe70502b475dd4 /drivers/staging/xillybus/xillybus_pcie.c
parent853a57f2d3f1f1126c3bd6a04a1efdee851fe546 (diff)
staging: xillybus: Fixed sparse errors
Changes: * xillybus.h: __iomem added to struct xilly_endpoint -> registers to suppress "different address spaces" errors. * xillybus_core.c: __user added as required for the same reason. * The two member names of struct xilly_endpoint_hardware of the form sync_single_for_{cpu,device} were changed to something that won't look like the well-known functions. * All *.c files: Variables and functions made static as required. Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Eli Billauer <eli.billauer@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/xillybus/xillybus_pcie.c')
-rw-r--r--drivers/staging/xillybus/xillybus_pcie.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/xillybus/xillybus_pcie.c b/drivers/staging/xillybus/xillybus_pcie.c
index ad45bdb2a715..67013652358b 100644
--- a/drivers/staging/xillybus/xillybus_pcie.c
+++ b/drivers/staging/xillybus/xillybus_pcie.c
@@ -112,7 +112,7 @@ static dma_addr_t xilly_map_single_pci(struct xilly_cleanup *mem,
return addr;
}
-void xilly_unmap_single_pci(struct xilly_dma *entry)
+static void xilly_unmap_single_pci(struct xilly_dma *entry)
{
pci_unmap_single(entry->pdev,
entry->dma_addr,
@@ -122,8 +122,8 @@ void xilly_unmap_single_pci(struct xilly_dma *entry)
static struct xilly_endpoint_hardware pci_hw = {
.owner = THIS_MODULE,
- .sync_single_for_cpu = xilly_dma_sync_single_for_cpu_pci,
- .sync_single_for_device = xilly_dma_sync_single_for_device_pci,
+ .hw_sync_sgl_for_cpu = xilly_dma_sync_single_for_cpu_pci,
+ .hw_sync_sgl_for_device = xilly_dma_sync_single_for_device_pci,
.map_single = xilly_map_single_pci,
.unmap_single = xilly_unmap_single_pci
};