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.
This commit is contained in:
parent
cab816fb6d
commit
2b811adcbc
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue