Skip to content
Snippets Groups Projects
Verified Commit b1047108 authored by Josef Schlehofer's avatar Josef Schlehofer
Browse files

patches/openwrt: Turris 1.x: add LEDs driver: manually add io.h

Fixes:
drivers/leds/leds-turris-1x.c: In function 'turris1x_hwtrig_activate':
drivers/leds/leds-turris-1x.c:58:8: error: implicit declaration of function 'readb' [-Werror=implicit-function-declaration]
  val = readb(leds->regs + TURRIS1X_LED_SW_OVERRIDE_REG);
        ^~~~~
drivers/leds/leds-turris-1x.c:60:2: error: implicit declaration of function 'writeb'; did you mean 'wrtee'? [-Werror=implicit-function-declaration]
  writeb(val, leds->regs + TURRIS1X_LED_SW_OVERRIDE_REG);
  ^~~~~~
  wrtee
cc1: some warnings being treated as errors
make[6]: *** [scripts/Makefile.build:286: drivers/leds/leds-turris-1x.o] Error 1
make[5]: *** [scripts/Makefile.build:503: drivers/leds] Error 2
parent df9b7953
Branches
Tags
Pipeline #105295 passed with stages
in 6 minutes and 44 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment