]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
lib: devres: Fix build breakage
authorThierry Reding <thierry.reding@avionic-design.de>
Tue, 22 Jan 2013 21:24:46 +0000 (22:24 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 31 Oct 2013 15:20:07 +0000 (16:20 +0100)
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>
lib/devres.c

index 9c76b3a9cc722ab1116a9fa5821a8e05bc39fe35..88ad75952a764fd206ba621c0294a322218504ce 100644 (file)
@@ -1,3 +1,4 @@
+#include <linux/err.h>
 #include <linux/pci.h>
 #include <linux/io.h>
 #include <linux/gfp.h>