platform_driver/of_platform_driver compile warning in fsldma.c

Kumar Gala galak at kernel.crashing.org
Fri Apr 8 19:12:13 EST 2011


Grant,

I'm being lazy, can you give any quick insight on the following compile warning:

drivers/dma/fsldma.c:1457:2: warning: initialization from incompatible pointer type
drivers/dma/fsldma.c: In function 'fsldma_init':
drivers/dma/fsldma.c:1468:2: warning: passing argument 1 of 'platform_driver_register' from incompatible pointer type
include/linux/platform_device.h:124:12: note: expected 'struct platform_driver *' but argument is of type 'struct of_platform_driver *'
drivers/dma/fsldma.c: In function 'fsldma_exit':
drivers/dma/fsldma.c:1473:2: warning: passing argument 1 of 'platform_driver_unregister' from incompatible pointer type
include/linux/platform_device.h:125:13: note: expected 'struct platform_driver *' but argument is of type 'struct of_platform_driver *'

- k


More information about the Linuxppc-dev mailing list