Skip to content

Commit 5563caa

Browse files
committed
[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:100:2: error: implicit declaration of function ‘readl_relaxed’ [-Werror=implicit-function-declaration] Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
1 parent cf3167c commit 5563caa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/media/rc/ir-hix5hd2.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
#ifndef writel_relaxed
2121
# define writel_relaxed writel
2222
#endif
23+
#ifndef readl_relaxed
24+
# define readl_relaxed readl
25+
#endif
2326

2427
#define IR_ENABLE 0x00
2528
#define IR_CONFIG 0x04

0 commit comments

Comments
 (0)