]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
apf: Remove more sparse warnings
authorS Mohan <s.mohan@xilinx.com>
Fri, 6 Sep 2013 19:55:16 +0000 (12:55 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 11 Sep 2013 05:28:38 +0000 (07:28 +0200)
Removed more sparse warnings based on input from Michal Simek

Signed-off-by: S Mohan <s.mohan@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/staging/apf/xilinx-dma-apf.c
drivers/staging/apf/xlnk.h

index 99aae6323e1603c3fce0a4c28ad73c8e04477772..9ae372a1e8860be56f6aad371fdade0ab06e51c5 100644 (file)
@@ -969,10 +969,10 @@ static int xdma_probe(struct platform_device *pdev)
                return -EFAULT;
        }
 
-       dev_info(&pdev->dev, "AXIDMA device %d physical base address=0x%08x\n",
-                pdev->id, (unsigned int)res->start);
-       dev_info(&pdev->dev, "AXIDMA device %d remapped to 0x%08x\n",
-                pdev->id, (unsigned int)xdev->regs);
+       dev_info(&pdev->dev, "AXIDMA device %d physical base address=%pa\n",
+                pdev->id, &res->start);
+       dev_info(&pdev->dev, "AXIDMA device %d remapped to %pa\n",
+                pdev->id, &xdev->regs);
 
        /* Allocate the channels */
 
@@ -991,8 +991,7 @@ static int xdma_probe(struct platform_device *pdev)
 
                /* Initialize channel parameters */
                chan->id = i;
-               chan->regs = (void __iomem *)
-                               ((u32)xdev->regs + dma_chan_reg_offset);
+               chan->regs = xdev->regs + dma_chan_reg_offset;
                /* chan->regs = xdev->regs; */
                chan->dev = xdev->dev;
                chan->max_len = XDMA_MAX_TRANS_LEN;
index d3977bddf668938038c15b846bf019e40c0e4ba4..544d3bcc6f1fab42862da5e4a6326a765fe81fcd 100644 (file)
@@ -26,8 +26,8 @@ enum xlnk_dma_direction {
 union xlnk_args {
        struct {
                unsigned int len;
-               unsigned int *idptr;
-               unsigned int *phyaddrptr;
+               unsigned int __user *idptr;
+               unsigned int __user *phyaddrptr;
                unsigned int cacheable;
        } allocbuf;
        struct {