Reputation: 439
Hi Im having errors with compiling in usbtouchscreen.c into the kernel drivers. I have attached the usbtouchsreen.c file to the post also.
CC drivers/input/touchscreen/usbtouchscreen.o
drivers/input/touchscreen/usbtouchscreen.c: In function 'usbtouch_free_buffers':
drivers/input/touchscreen/usbtouchscreen.c:856: error: implicit declaration of function 'usb_buffer_free'
drivers/input/touchscreen/usbtouchscreen.c: In function 'usbtouch_probe':
drivers/input/touchscreen/usbtouchscreen.c:890: error: implicit declaration of function 'usb_buffer_alloc'
drivers/input/touchscreen/usbtouchscreen.c:891: warning: assignment makes pointer from integer without a cast
make[3]: *** [drivers/input/touchscreen/usbtouchscreen.o] Error 1
make[2]: *** [drivers/input/touchscreen] Error 2
make[1]: *** [drivers/input] Error 2
make: *** [drivers] Error 2
I have included the source here: http://pastebin.com/GTsic7Bg
Upvotes: 0
Views: 1223
Reputation: 129494
Is your driver quite old (or for an older kernel, perhaps)? Perhaps you want to take a look at this rename:
https://lkml.org/lkml/2010/4/12/132
It seems to be in the latest kernel at least:
http://lxr.linux.no/linux+*/drivers/usb/core/usb.c#L698
In fact it seems to have gone into 2.6.34 or thereabouts.
Upvotes: 1