diff options
author | Thierry Reding <thierry.reding@avionic-design.de> | 2013-01-22 22:24:46 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-22 13:31:18 -0800 |
commit | f4a18312f46a6c6e0ba7b81776b01fc36edea9fc (patch) | |
tree | ff322b85a44eafdb2b72e525b8d1391f47e31b6b | |
parent | 846a798174d3376542a394a3c5227ef149445e83 (diff) |
lib: devres: Fix build breakage
The ERR_PTR() and IS_ERR() macros used by the devm_ioremap_resource()
function are defined in the linux/err.h header. On ARM this seems to be
pulled in by one of the other headers but the build fails at least on
OpenRISC.
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | lib/devres.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/devres.c b/lib/devres.c index 9c76b3a9cc72..88ad75952a76 100644 --- a/lib/devres.c +++ b/lib/devres.c @@ -1,3 +1,4 @@ +#include <linux/err.h> #include <linux/pci.h> #include <linux/io.h> #include <linux/gfp.h> |