• Arnd Bergmann's avatar
    mtd: onenand: fix build warning for dma type · 81d46c59
    Arnd Bergmann authored
    The samsung onenand driver passes around a dma address token
    through a void pointer, which is incorrect and leads to
    warnings like this one:
    
    onenand/samsung.c:548:2: warning: passing argument 1 of '__fswab32' makes integer from pointer without a cast [enabled by default]
      writel(src, base + S5PC110_DMA_SRC_ADDR);
      ^
    
    This patch makes it use dma_addr_t here, which is more appropriate.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Cc: Kyungmin Park <kyungmin.park@samsung.com>
    Cc: David Woodhouse <dwmw2@infradead.org>
    Cc: linux-mtd@lists.infradead.org
    Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
    81d46c59
samsung.c 28.2 KB