On Sat, 9 Jan 2010, Alexey Starikovskiy wrote: > Andrew Morton пишет: > > I wonder if it can be fixed in Kconfig. Is there any sane use of > > this code when CONFIG_ACPI_SYSFS_POWER=n && CONFIG_ACPI_PROCFS_POWER=n? > No, this driver is useless in such a case. It can not output any info (and this is all it does). Hi Alex, Probably the code can lose some ifdefs by doing things like making acpi_battery_remove_fs() a static inline when !CONFIG_ACPI_PROCFS_POWER. cheers, -Len