]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ath6kl: Fix compilation error from of.h
authorSangwook Lee <sangwook.lee@linaro.org>
Wed, 26 Oct 2011 15:28:38 +0000 (16:28 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 11 Nov 2011 10:58:55 +0000 (12:58 +0200)
When compiling ath6kl for ARM with device tree tree compilation fails
with errors like:

include/linux/of.h: In function 'of_property_read_u32_array':
include/linux/of.h:249:10: error: 'ENOSYS' undeclared

Workaround this by including errno.h from init.c.

kvalo: improved commit log

Signed-off-by: Sangwook Lee <sangwook.lee@linaro.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/init.c

index c638aabd417e70b718133ed2a830a6fdb78648b0..6e6a1413ed3d39b7070996927b1a18e9290276e9 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #include <linux/moduleparam.h>
+#include <linux/errno.h>
 #include <linux/of.h>
 #include <linux/mmc/sdio_func.h>
 #include "core.h"