Patchwork [3.5.y.z,extended,stable] Patch "regmap: Add missing header for !CONFIG_REGMAP stubs" has been added to staging queue

mail settings
Submitter Luis Henriques
Date Aug. 9, 2013, 11:22 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/266006/
State New
Headers show


Luis Henriques - Aug. 9, 2013, 11:22 a.m.
This is a note to let you know that I have just added a patch titled

    regmap: Add missing header for !CONFIG_REGMAP stubs

to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree 
which can be found at:;a=shortlog;h=refs/heads/linux-3.5.y-queue

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.5.y.z tree, see



From 3112d4b83fedd5a9eedf1406ecb3e754593c24f4 Mon Sep 17 00:00:00 2001
From: Mateusz Krawczuk <>
Date: Tue, 6 Aug 2013 18:34:40 +0200
Subject: [PATCH] regmap: Add missing header for !CONFIG_REGMAP stubs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

commit 49ccc142f9cbc33fdda18e8fa90c1c5b4a79c0ad upstream.

regmap.h requires linux/err.h if CONFIG_REGMAP is not defined. Without it I get
CC      drivers/media/platform/exynos4-is/fimc-reg.o
In file included from drivers/media/platform/exynos4-is/fimc-reg.c:14:0:
include/linux/regmap.h: In function ‘regmap_write’:
include/linux/regmap.h:525:10: error: ‘EINVAL’ undeclared (first use in this function)
include/linux/regmap.h:525:10: note: each undeclared identifier is reported only once for each function it appears in

Signed-off-by: Mateusz Krawczuk <>
Signed-off-by: Kyungmin Park <>
Signed-off-by: Mark Brown <>
Signed-off-by: Luis Henriques <>
 include/linux/regmap.h | 1 +
 1 file changed, 1 insertion(+)



diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index 56af22e..adde16f 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -14,6 +14,7 @@ 

 #include <linux/list.h>
+#include <linux/err.h>

 struct module;
 struct device;