]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: Fix build for CONFIG_NET unset
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 1 Mar 2011 00:12:19 +0000 (01:12 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 1 Mar 2011 02:00:31 +0000 (18:00 -0800)
commit3bc06631ef351ae589cbfe56d9e7b65647394c49
tree8c258db7e165cc160a8c85c3d06afa5f1e07a063
parenteb3b8dcfa69587b94a8ada78b8aac97a2712d7a4
ACPI: Fix build for CONFIG_NET unset

Several ACPI drivers fail to build if CONFIG_NET is unset, because
they refer to things depending on CONFIG_THERMAL that in turn depends
on CONFIG_NET.  However, CONFIG_THERMAL doesn't really need to depend
on CONFIG_NET, because the only part of it requiring CONFIG_NET is
the netlink interface in thermal_sys.c.

Put the netlink interface in thermal_sys.c under #ifdef CONFIG_NET
and remove the dependency of CONFIG_THERMAL on CONFIG_NET from
drivers/thermal/Kconfig.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Len Brown <lenb@kernel.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Luming Yu <luming.yu@intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/thermal/Kconfig
drivers/thermal/thermal_sys.c
include/linux/thermal.h