linux内核:linux-2.6.30.4
编译驱动提示如下错误:
error: implicit declaration of function 'class_create'
error: implicit declaration of function 'class_device_create'
error: implicit declaration of function 'class_device_unregister'
error: implicit declaration of function 'class_destroy'
原因:
class_create, class_device_create,class_device_unregister,class_destroy是早期内核版本的API
现在已经改成device_create 和 device_destroy
阅读(4084) | 评论(0) | 转发(0) |