linux/drivers/acpi
Bjorn Helgaas 578b333bfe ACPI: update asus_acpi driver registration to unload on failure
Remove the assumption that acpi_bus_register_driver() returns the number of
devices claimed.  Returning the count is unreliable because devices may be
hot-plugged in the future (admittedly not applicable for this driver).

Since the hardware for this driver is not hot-pluggable, determine whether the
hardware is present by noticing calls to the .add() method.  It would be
better to probe the ACPI namespace for the ASUS HIDs, and load the driver only
when we find one, but ACPI doesn't support that yet.

I don't have an ASUS laptop to test on, but on my HP dl360, it does report the
appropriate error when attempting to load the module:

    $ sudo insmod drivers/acpi/asus_acpi.ko
    insmod: error inserting 'drivers/acpi/asus_acpi.ko': -1 No such device

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
2006-04-01 21:48:08 -05:00
..
dispatcher [ACPI] ACPICA 20060127 2006-01-31 03:25:09 -05:00
events [ACPI] ACPICA 20060127 2006-01-31 03:25:09 -05:00
executer [ACPI] ACPICA 20060127 2006-01-31 03:25:09 -05:00
hardware [ACPI] ACPICA 20060127 2006-01-31 03:25:09 -05:00
namespace [ACPI] ACPICA 20060127 2006-01-31 03:25:09 -05:00
parser [ACPI] ACPICA 20060127 2006-01-31 03:25:09 -05:00
resources [PATCH] ACPI: fix vendor resource length computation 2006-02-17 14:09:22 -08:00
sleep
tables [ACPI] ACPICA 20060127 2006-01-31 03:25:09 -05:00
utilities [ACPI] ACPICA 20060127 2006-01-31 03:25:09 -05:00
ac.c
acpi_memhotplug.c
asus_acpi.c ACPI: update asus_acpi driver registration to unload on failure 2006-04-01 21:48:08 -05:00
battery.c
blacklist.c [PATCH] x86_64: Clean up and tweak ACPI blacklist year code 2006-03-25 09:10:54 -08:00
bus.c
button.c
container.c
debug.c
ec.c [PATCH] Don't pass boot parameters to argv_init[] 2006-03-31 12:18:53 -08:00
event.c
fan.c
glue.c
hotkey.c
ibm_acpi.c [PATCH] acpi: remove dock event handling from ibm_acpi 2006-03-23 14:35:15 -08:00
Kconfig fix typos "wich" -> "which" 2006-03-24 18:23:14 +01:00
Makefile
motherboard.c
numa.c
osl.c [PATCH] ACPI: clean up memory attribute checking for map/read/write 2006-03-26 08:56:54 -08:00
pci_bind.c
pci_irq.c
pci_link.c [ACPI] remove "Resource isn't an IRQ" warning 2006-01-26 17:23:38 -05:00
pci_root.c
power.c
processor_core.c [PATCH] more s/fucn/func/ typo fixes 2006-03-26 08:57:09 -08:00
processor_idle.c [PATCH] Fix compilation of processor_idle.c on IA64 2006-03-25 20:19:29 -08:00
processor_perflib.c
processor_thermal.c
processor_throttling.c
scan.c ACPI: make acpi_bus_register_driver() return success/failure, not device count 2006-04-01 21:42:57 -05:00
system.c
tables.c [PATCH] EFI fixes 2006-03-26 08:56:54 -08:00
thermal.c
toshiba_acpi.c
utils.c
video.c