From: Kevin Hilman Date: Wed, 14 Aug 2013 23:05:02 +0000 (-0700) Subject: regmap: Add another missing header for !CONFIG_REGMAP stubs X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3f0fa9a808f98fa10a18ba2a73f13d65fda990fb;p=linux-beck.git regmap: Add another missing header for !CONFIG_REGMAP stubs The use of WARN_ON() needs the definitions from bug.h, without it you can get: include/linux/regmap.h: In function 'regmap_write': include/linux/regmap.h:525:2: error: implicit declaration of function 'WARN_ONCE' [-Werror=implicit-function-declaration] Signed-off-by: Kevin Hilman Signed-off-by: Mark Brown Cc: stable@vger.kernel.org --- diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 580a5320cc96..6d91fcb4c5cb 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -16,6 +16,7 @@ #include #include #include +#include struct module; struct device;