Comment 67 for bug 238208

Revision history for this message
Gabrielcik (miliy-multik) wrote : Re: Need MemoryStick driver Ricoh R5C822 chipset

I tried to do "make" but i get this error:

make -C /lib/modules/2.6.32-24-generic/build M=/home/gabrielcik/stick
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-24-generic'
  CC [M] /home/gabrielcik/stick/host/r592.o
/home/gabrielcik/stick/host/r592.c: In function ‘r592_probe’:
/home/gabrielcik/stick/host/r592.c:768: error: incompatible type for argument 1 of ‘dma_alloc_from_coherent’
include/asm-generic/dma-coherent.h:9: note: expected ‘struct device *’ but argument is of type ‘struct device’
/home/gabrielcik/stick/host/r592.c:768: warning: passing argument 4 of ‘dma_alloc_from_coherent’ from incompatible pointer type
include/asm-generic/dma-coherent.h:9: note: expected ‘void **’ but argument is of type ‘int *’
make[3]: *** [/home/gabrielcik/stick/host/r592.o] Error 1
make[2]: *** [/home/gabrielcik/stick/host] Error 2
make[1]: *** [_module_/home/gabrielcik/stick] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-24-generic'
make: *** [build] Error 2

What to do?

I use Ubuntu 10.04 on a Vaio W. Thank you!