summaryrefslogtreecommitdiff
path: root/drivers/fsi/fsi-core.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-06-20 22:43:42 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-07-17 16:13:54 +0200
commitceb8a12ff2d4b085f7cee1ac44523ee63ce51e20 (patch)
tree9a20c66f64e0c31dd5e3cd4b5d5be46201cebb67 /drivers/fsi/fsi-core.c
parent496f8931b6460febac1dc91c03e86530f938483a (diff)
downloadlinux-rt-ceb8a12ff2d4b085f7cee1ac44523ee63ce51e20.tar.gz
drivers/fsi: fix fsi_slave_mode prototype
gcc warns about the return type of this function: drivers/fsi/fsi-core.c:535:8: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers] This removes the 'const' attribute, as suggested by the warning. Fixes: 2b37c3e285f9 ("drivers/fsi: Set slave SMODE to init communication") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/fsi/fsi-core.c')
-rw-r--r--drivers/fsi/fsi-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/fsi/fsi-core.c b/drivers/fsi/fsi-core.c
index 4019d3ca5eff..06432d84cbf8 100644
--- a/drivers/fsi/fsi-core.c
+++ b/drivers/fsi/fsi-core.c
@@ -532,7 +532,7 @@ static inline uint32_t fsi_smode_sid(int x)
return (x & FSI_SMODE_SID_MASK) << FSI_SMODE_SID_SHIFT;
}
-static const uint32_t fsi_slave_smode(int id)
+static uint32_t fsi_slave_smode(int id)
{
return FSI_SMODE_WSC | FSI_SMODE_ECRC
| fsi_smode_sid(id)