]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: include <linux/delay.h> from include/linux/regmap.h
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 13 Oct 2016 10:07:54 +0000 (19:07 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 13 Oct 2016 14:44:04 +0000 (16:44 +0200)
commit6eecc1aeecbe10a722b5201361e1e69020856a9d
tree65c4e830454c3ae729f2dacffe1338c5401566ca
parentb1456e89f7165db55ffc36ead7b1c1b7b9178a5b
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: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/regmap.h