Revert "camera: fix possible memory leak"

This reverts commit 5514a1bc32ea102205be6d1d223cb2fcdd82bd3d.
camera: use hw_get_module_by_class

* Get rif of the HW ID match check hack