linux-3.2.0-psp04.06.00.11 CH9344驱动编译失败

   驱动拷贝到 linux-3.2.0-psp04.06.00.11/drivers/usb/serial 下

修改MAKE 增加ch9344.O

编译失败 如下 

 CALL    scripts/checksyscalls.sh

  CHK     include/generated/compile.h

  CHK     kernel/config_data.h

  CC      drivers/usb/serial/ch9344.o

drivers/usb/serial/ch9344.c: In function ‘ch9344_alloc_minor’:

drivers/usb/serial/ch9344.c:121:2: error: implicit declaration of function ‘idr_alloc’ [-Werror=implicit-function-declaration]

drivers/usb/serial/ch9344.c: In function ‘ch9344_cmd_irq’:

drivers/usb/serial/ch9344.c:476:8: error: implicit declaration of function ‘tty_port_tty_hangup’ [-Werror=implicit-function-declaration]

drivers/usb/serial/ch9344.c: In function ‘ch9344_process_read_urb’:

drivers/usb/serial/ch9344.c:653:5: warning: passing argument 1 of ‘tty_insert_flip_string’ from incompatible pointer type [enabled by default]

In file included from drivers/usb/serial/ch9344.c:43:0:

include/linux/tty_flip.h:23:19: note: expected ‘struct tty_struct *’ but argument is of type ‘struct tty_port *’

drivers/usb/serial/ch9344.c:654:3: warning: passing argument 1 of ‘tty_flip_buffer_push’ from incompatible pointer type [enabled by default]

In file included from drivers/usb/serial/ch9344.c:40:0:

include/linux/tty.h:442:13: note: expected ‘struct tty_struct *’ but argument is of type ‘struct tty_port *’

drivers/usb/serial/ch9344.c: In function ‘ch9344_softint’:

drivers/usb/serial/ch9344.c:700:2: error: implicit declaration of function ‘tty_port_tty_wakeup’ [-Werror=implicit-function-declaration]

drivers/usb/serial/ch9344.c: In function ‘ch9344_tty_install’:

drivers/usb/serial/ch9344.c:715:2: error: implicit declaration of function ‘tty_standard_install’ [-Werror=implicit-function-declaration]

drivers/usb/serial/ch9344.c: In function ‘ch9344_port_activate’:

drivers/usb/serial/ch9344.c:805:2: error: implicit declaration of function ‘usb_translate_errors’ [-Werror=implicit-function-declaration]

drivers/usb/serial/ch9344.c: In function ‘ch9344_tty_set_termios’:

drivers/usb/serial/ch9344.c:1732:29: warning: initialization from incompatible pointer type [enabled by default]

drivers/usb/serial/ch9344.c:1749:4: warning: passing argument 1 of ‘tty_termios_hw_change’ from incompatible pointer type [enabled by default]

In file included from drivers/usb/serial/ch9344.c:40:0:

include/linux/tty.h:455:12: note: expected ‘struct ktermios *’ but argument is of type ‘struct ktermios **’

drivers/usb/serial/ch9344.c:1757:17: error: incompatible types when assigning to type ‘struct ktermios *’ from type ‘struct ktermios’

drivers/usb/serial/ch9344.c: In function ‘ch9344_probe’:

drivers/usb/serial/ch9344.c:2201:3: error: implicit declaration of function ‘tty_port_register_device’ [-Werror=implicit-function-declaration]

drivers/usb/serial/ch9344.c:2201:11: warning: assignment makes pointer from integer without a cast [enabled by default]

drivers/usb/serial/ch9344.c: At top level:

drivers/usb/serial/ch9344.c:2446:2: error: unknown field ‘disable_hub_initiated_lpm’ specified in initializer

cc1: some warnings being treated as errors

make[3]: *** [drivers/usb/serial/ch9344.o] Error 1

make[2]: *** [drivers/usb/serial] Error 2

make[1]: *** [drivers/usb] Error 2

make: *** [drivers] Error 2


请问如何解决

您好,如上信息使用的是低版本内核,可单独发送邮件到我们技术邮箱:tech@wch.cn获取驱动。


只有登录才能回复,可以选择微信账号登录