ljalves / linux_media

TBS linux open source drivers
https://github.com/ljalves/linux_media/wiki
Other
89 stars 150 forks source link

Problem compiling with kernel 3.16.0-4-amd64 #124

Closed askuratovich closed 8 years ago

askuratovich commented 8 years ago

i have Debian 8 jessie with kernel 3.16.0-4-amd64

Use last commit: https://github.com/ljalves/linux_media/commit/11d8d0168537bcf763df6af6c8075617e5e09544

I saw the issue: unable to build driver - kodibuntu but not help me, error returned.

I have the following error when perform the make command:

/home/alex/tbs/media_build/v4l/adp1653.c: In function 'adp1653_of_init': /home/alex/tbs/media_build/v4l/adp1653.c:468:59: error: 'GPIOD_ASIS' undeclared (first use in this function) pd->enable_gpio = devm_gpiod_get(&client->dev, "enable", GPIOD_ASIS); ^ /home/alex/tbs/media_build/v4l/adp1653.c:468:59: note: each undeclared identifier is reported only once for each function it appears in /home/alex/tbs/media_build/v4l/adp1653.c:468:2: error: too many arguments to function 'devm_gpiod_get' pd->enable_gpio = devm_gpiod_get(&client->dev, "enable", GPIOD_ASIS); ^ In file included from /home/alex/tbs/media_build/v4l/adp1653.c:39:0: /usr/src/linux-headers-3.16.0-4-common/include/linux/gpio/consumer.h:35:32: note: declared here struct gpio_desc ___must_check devm_gpiod_get(struct device dev, ^ /usr/src/linux-headers-3.16.0-4-common/scripts/Makefile.build:268: ошибка выполнения рецепта для цели «/home/alex/tbs/media_build/v4l/adp1653.o» make[5]: _* [/home/alex/tbs/media_build/v4l/adp1653.o] Ошибка 1 /usr/src/linux-headers-3.16.0-4-common/Makefile:1352: ошибка выполнения рецепта для цели «module/home/alex/tbs/media_build/v4l» make[4]: * [module/home/alex/tbs/media_build/v4l] Ошибка 2 Makefile:181: recipe for target 'sub-make' failed make[3]: * [sub-make] Error 2 Makefile:8: recipe for target 'all' failed make[2]: * [all] Error 2 make[2]: Leaving directory '/usr/src/linux-headers-3.16.0-4-amd64' Makefile:51: ошибка выполнения рецепта для цели «default» make[1]: * [default] Ошибка 2 make[1]: выход из каталога «/home/alex/tbs/media_build/v4l» Makefile:26: ошибка выполнения рецепта для цели «all» make: *\ [all] Ошибка 2

askuratovich commented 8 years ago

delete GPIOD_ASIS from file /media_build/v4l/adp1653.c