Revert "Use hw_get_module_by_class"

This reverts commit 2293d25ca75612149db2fa514d6b3deb818069a6.