compat: add linux/of.h just when CONFIG_OF is set.
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 4 Oct 2011 11:11:47 +0000 (13:11 +0200)
committerLuis R. Rodriguez <mcgrof@qca.qualcomm.com>
Wed, 5 Oct 2011 00:41:40 +0000 (17:41 -0700)
commit966e8478176097f929df89406291aa75bb574984
tree5261d90b040271608e477985b152de43648f9e79
parenta839eee468e9d9b9df92251374acc10c42020faf
compat: add linux/of.h just when CONFIG_OF is set.

In kernel < 2.6.34 linux/of.h unconditionally includes asm/prom.h which
is not available on all architectures. In newer kernel versions this is
just included if CONFIG_OF is set. For these old kernel just include
linux/of.h when CONFIG_OF is set. This fixes a compile problem with
ath6kl as it uses linux/of.h only when CONFIG_OF is set.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
include/linux/of.h [new file with mode: 0644]