diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-10-09 09:41:28 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-10-09 12:45:03 -0400 |
commit | 5563caaf8b8cd22e35997d5d74cb3609df86b223 (patch) | |
tree | f1cd77931f8a5f1f2e7a58f9074496f5c8fda963 | |
parent | cf3167cf1e969b17671a4d3d956d22718a8ceb85 (diff) |
[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>
-rw-r--r-- | drivers/media/rc/ir-hix5hd2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/rc/ir-hix5hd2.c b/drivers/media/rc/ir-hix5hd2.c index c555ca2aed0e..08bbd4f508cd 100644 --- a/drivers/media/rc/ir-hix5hd2.c +++ b/drivers/media/rc/ir-hix5hd2.c | |||
@@ -20,6 +20,9 @@ | |||
20 | #ifndef writel_relaxed | 20 | #ifndef writel_relaxed |
21 | # define writel_relaxed writel | 21 | # define writel_relaxed writel |
22 | #endif | 22 | #endif |
23 | #ifndef readl_relaxed | ||
24 | # define readl_relaxed readl | ||
25 | #endif | ||
23 | 26 | ||
24 | #define IR_ENABLE 0x00 | 27 | #define IR_ENABLE 0x00 |
25 | #define IR_CONFIG 0x04 | 28 | #define IR_CONFIG 0x04 |