mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
[media] ir-hix5hd2: fix build on c6x arch
While not all archs have readl_relaxed, we need to add a hack at the
driver to allow it to COMPILE_TEST on all archs:
drivers/media/rc/ir-hix5hd2.c: In function ‘hix5hd2_ir_config’:
drivers/media/rc/ir-hix5hd2.c💯2: error: implicit declaration of function ‘readl_relaxed’ [-Werror=implicit-function-declaration]
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
cf3167cf1e
commit
5563caaf8b
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,9 @@
|
|||
#ifndef writel_relaxed
|
||||
# define writel_relaxed writel
|
||||
#endif
|
||||
#ifndef readl_relaxed
|
||||
# define readl_relaxed readl
|
||||
#endif
|
||||
|
||||
#define IR_ENABLE 0x00
|
||||
#define IR_CONFIG 0x04
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue