Browse Source

dmaengine: shdmac: Include linux/err.h

linux/err.h isn't implicitly included by the current headers on all
platforms, resulting in compilation failures due to implicit
declarations of IS_ERR and PTR_ERR. Fix this by including linux/err.h.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Laurent Pinchart 11 years ago
parent
commit
c46b9af26f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/dma/sh/shdmac.c

+ 1 - 0
drivers/dma/sh/shdmac.c

@@ -20,6 +20,7 @@
 
 #include <linux/delay.h>
 #include <linux/dmaengine.h>
+#include <linux/err.h>
 #include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/kdebug.h>