]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: onenand: fix build warning for dma type
authorArnd Bergmann <arnd@arndb.de>
Thu, 8 May 2014 14:56:14 +0000 (16:56 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 20 May 2014 23:35:31 +0000 (16:35 -0700)
commite1da51010604f2c84268aabe0edff01afec18b91
treed45e6162f3754696cc531818b2b54298c2bcc322
parent61b4623483152b1b27d1fee5609c20600e1ec547
mtd: onenand: fix build warning for dma type

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: Arnd 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: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/onenand/samsung.c