Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186865
b: refs/heads/master
c: df84f94
h: refs/heads/master
i:
  186863: e98049d
v: v3
  • Loading branch information
Chihau Chau authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent ee454ee commit 3500b61
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3f4b4e779714ae2dd55757617a8033ab338fa7f0
refs/heads/master: df84f941e9370be6798fa11aa5a77396d8869fdc
17 changes: 10 additions & 7 deletions trunk/drivers/staging/dream/camera/msm_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ static LIST_HEAD(msm_sensors);
list_del_init(&qcmd->list); \
kfree(qcmd); \
}; \
} while(0)
} while (0)

#define MSM_DRAIN_QUEUE(sync, name) do { \
unsigned long flags; \
spin_lock_irqsave(&(sync)->name##_lock, flags); \
MSM_DRAIN_QUEUE_NOSYNC(sync, name); \
spin_unlock_irqrestore(&(sync)->name##_lock, flags); \
} while(0)
} while (0)

static int check_overlap(struct hlist_head *ptype,
unsigned long paddr,
Expand Down Expand Up @@ -868,7 +868,7 @@ static int msm_config_vfe(struct msm_sync *sync, void __user *arg)
return -EFAULT;
}

switch(cfgcmd.cmd_type) {
switch (cfgcmd.cmd_type) {
case CMD_STATS_ENABLE:
axi_data.bufnum1 =
msm_pmem_region_lookup(&sync->stats,
Expand Down Expand Up @@ -1621,7 +1621,8 @@ static int msm_release_control(struct inode *node, struct file *filep)
int rc;
struct msm_control_device *ctrl_pmsm = filep->private_data;
struct msm_device *pmsm = ctrl_pmsm->pmsm;
printk("msm_camera: RELEASE %s\n", filep->f_path.dentry->d_name.name);
printk(KERN_INFO "msm_camera: RELEASE %s\n",
filep->f_path.dentry->d_name.name);
rc = __msm_release(pmsm->sync);
if (!rc) {
MSM_DRAIN_QUEUE(&ctrl_pmsm->ctrl_q, ctrl_status_q);
Expand All @@ -1635,7 +1636,8 @@ static int msm_release_frame(struct inode *node, struct file *filep)
{
int rc;
struct msm_device *pmsm = filep->private_data;
printk("msm_camera: RELEASE %s\n", filep->f_path.dentry->d_name.name);
printk(KERN_INFO "msm_camera: RELEASE %s\n",
filep->f_path.dentry->d_name.name);
rc = __msm_release(pmsm->sync);
if (!rc) {
MSM_DRAIN_QUEUE(pmsm->sync, prev_frame_q);
Expand Down Expand Up @@ -1719,7 +1721,7 @@ static void msm_vfe_sync(struct msm_vfe_resp *vdata,
qcmd->type = qtype;

if (qtype == MSM_CAM_Q_VFE_MSG) {
switch(vdata->type) {
switch (vdata->type) {
case VFE_MSG_OUTPUT1:
case VFE_MSG_OUTPUT2:
qcmd_frame =
Expand Down Expand Up @@ -1928,7 +1930,8 @@ static int __msm_v4l2_control(struct msm_sync *sync,
memcpy(out->value, ctrl->value, ctrl->length);

end:
if (rcmd) kfree(rcmd);
if (rcmd)
kfree(rcmd);
CDBG("__msm_v4l2_control: end rc = %d\n", rc);
return rc;
}
Expand Down

0 comments on commit 3500b61

Please sign in to comment.