Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit adf08d48 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Mark Brown
Browse files

regmap: include <linux/delay.h> from include/linux/regmap.h



The readx_poll_timeout() macro calls usleep_range(), which is
declared in <linux/delay.h>.

Make include/linux/regmap.h include <linux/delay.h>, like
include/linux/iopoll.h does.  Otherwise, users of the macro
will see "implicit declaration of function 'usleep_range'" error.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f785fb2e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@

#include <linux/list.h>
#include <linux/rbtree.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/bug.h>
#include <linux/lockdep.h>