m7-common: use hw_get_module_by_class

Change-Id: Iacd2e49ea77873b25b332dfbb9b33d49f5a6034a
Signed-off-by: DHOMD <DHO@dho.im>