m7-common: use hw_get_module_by_class

Change-Id: I05fe349d03465df56e34f797b5177bc37ed80129