]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fbdev: da8xx-fb: remove incorrect type cast
authorArnd Bergmann <arnd@arndb.de>
Mon, 25 Jan 2016 15:05:18 +0000 (16:05 +0100)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 29 Jan 2016 11:37:42 +0000 (13:37 +0200)
commitef88ee4e2c98c11dab56b2845ade9270acb8e68b
tree91322225e461a07e5ec6bb80735cd777e4478a7a
parentb54729b6cea7d1f46b1ed70cb7065c6bdefaa780
fbdev: da8xx-fb: remove incorrect type cast

The probe function correct passes a dma_addr_t pointer into
dma_alloc_coherent(), but has a cast to resource_size_t, which
might be different from dma_addr_t:

drivers/video/fbdev/da8xx-fb.c: In function 'fb_probe':
drivers/video/fbdev/da8xx-fb.c:1431:10: error: passing argument 3 of 'dma_alloc_coherent' from incompatible pointer type [-Werror=incompatible-pointer-types]

This removes the cast, which avoids the warning.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/da8xx-fb.c