Revert "Revert "Use hw_get_module_by_class""

This reverts commit 0a10b205cca45ead5f55144a7019af1cfb41389b.