summaryrefslogtreecommitdiff
path: root/lib/crc16.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2006-03-28 22:04:00 (GMT)
committerLen Brown <len.brown@intel.com>2006-04-02 02:48:08 (GMT)
commit578b333bfe8eb1360207a08a53c321822a8f40f3 (patch)
treeee71cd7fed8182b0477d733039509f4097933aab /lib/crc16.c
parent9d9f749b316ac21cb59ad3e595cbce469b409e1a (diff)
downloadlinux-fsl-qoriq-578b333bfe8eb1360207a08a53c321822a8f40f3.tar.xz
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>
Diffstat (limited to 'lib/crc16.c')
0 files changed, 0 insertions, 0 deletions