summaryrefslogtreecommitdiffstats
path: root/hardware.c
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2009-09-25 02:31:47 -0700
committerDavid 'Digit' Turner <digit@google.com>2009-09-25 02:31:47 -0700
commit2b811adcbc821573de53a15f3d4e85a3d5a4ef9b (patch)
treef719c9de50a12f63ce7e2d7ef494579e9fc81252 /hardware.c
parentcab816fb6d98c23a8958a5df0006d227b14d1146 (diff)
downloadhardware_libhardware-2b811adcbc821573de53a15f3d4e85a3d5a4ef9b.tar.gz
hardware_libhardware-2b811adcbc821573de53a15f3d4e85a3d5a4ef9b.tar.bz2
hardware_libhardware-2b811adcbc821573de53a15f3d4e85a3d5a4ef9b.zip
Fix a bug that prevents default hw modules to be loaded properly.
The problem was a simple typo, which prevented modules like /system/lib/hw/lib<module>.default.so from being loaded even if they were found on the system. This is required to fix the generic build when run in the emulator.
Diffstat (limited to 'hardware.c')
-rw-r--r--hardware.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hardware.c b/hardware.c
index 0415448..3a23b1f 100644
--- a/hardware.c
+++ b/hardware.c
@@ -151,7 +151,7 @@ int hw_get_module(const char *id, const struct hw_module_t **module)
}
status = -ENOENT;
- if (i < HAL_VARIANT_KEYS_COUNT) {
+ if (i < HAL_VARIANT_KEYS_COUNT+1) {
/* load the module, if this fails, we're doomed, and we should not try
* to load a different variant. */
status = load(id, path, module);