Camera: fix compile and fix not work in motorola device

Change-Id: Ib907d441d7322dc299f008712f93144a3ceec122