]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
of: include errno.h
authorKalle Valo <kvalo@qca.qualcomm.com>
Thu, 6 Oct 2011 12:40:44 +0000 (15:40 +0300)
committerGrant Likely <grant.likely@secretlab.ca>
Sat, 29 Oct 2011 10:49:40 +0000 (12:49 +0200)
When compiling ath6kl for beagleboard (omap2plus_defconfig plus
CONFIG_ATH6KL, CONFIG_OF disable) with current linux-next compilation
fails:

include/linux/of.h:269: error: 'ENOSYS' undeclared (first use in this function)
include/linux/of.h:276: error: 'ENOSYS' undeclared (first use in this function)
include/linux/of.h:289: error: 'ENOSYS' undeclared (first use in this function)

Fix this by including errno.h from of.h.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
include/linux/of.h

index 92c40a14224350ec2a24d9f158d0340e5bd17cfb..5dbe263462a94611518ebb81482d164ce5469d5d 100644 (file)
@@ -17,6 +17,7 @@
  */
 #include <linux/types.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/kref.h>
 #include <linux/mod_devicetable.h>
 #include <linux/spinlock.h>