camera: add notice message when sensor driver is new,but sensor device registered in board file by old

This commit is contained in:
ddl
2013-04-11 17:56:12 +08:00
parent 1ef7299e1f
commit 720ea6ad51

View File

@@ -684,6 +684,11 @@ static inline int sensor_face_detect_default_cb(struct soc_camera_device *icd, s
int config_flash = 0;\
int sensor_config;\
\
if (pdata == NULL) {\
printk("WARNING: Camera sensor device is registered in board by CONFIG_SENSOR_XX,\n"\
"Please register camera sesnor deivce in struct rkcamera_platform_data new_camera[]\n");\
BUG();\
}\
sensor_config = SensorConfiguration;\
new_camera = pdata->register_dev_new; \
while (strstr(new_camera->dev_name,"end")==NULL) { \