summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/max98373.c
diff options
context:
space:
mode:
authorGrant Grundler <grundler@chromium.org>2018-09-07 02:27:28 +0200
committerMark Brown <broonie@kernel.org>2018-09-07 18:04:10 +0200
commit3004136b90bedc9e254ff659adb7a60299e9495e (patch)
tree95ceb752e32f2af78e8ea1cbfaa9f4ffe7d18a5f /sound/soc/codecs/max98373.c
parentASoC: Intel: hdac_hdmi: Limit sampling rates at dai creation (diff)
downloadlinux-3004136b90bedc9e254ff659adb7a60299e9495e.tar.xz
linux-3004136b90bedc9e254ff659adb7a60299e9495e.zip
ASoC: max98373: usleep_range() needs include/delay.h
Commit ca917f9fe1a0fab added use of usleep_range() but not the corresponding "include <linux/delay.h>". The result is with Chrome OS won't build because warnings are forced to be errors: mnt/host/source/src/third_party/kernel/v4.4/sound/soc/codecs/max98373.c:734:2: error: implicit declaration of function 'usleep_range' [-Werror,-Wimplicit-function-declaration] usleep_range(10000, 11000); ^ Including delay.h "fixes" this. Signed-off-by: Grant Grundler <grundler@chromium.org> Reviewed-by: Benson Leung <bleung@chromium.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/max98373.c')
-rw-r--r--sound/soc/codecs/max98373.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max98373.c
index 1093f766d0d2..d6868c9a9ce6 100644
--- a/sound/soc/codecs/max98373.c
+++ b/sound/soc/codecs/max98373.c
@@ -2,6 +2,7 @@
// Copyright (c) 2017, Maxim Integrated
#include <linux/acpi.h>
+#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/regmap.h>