Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273708
b: refs/heads/master
c: 2fbdc9b
h: refs/heads/master
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Mauro Carvalho Chehab committed Nov 3, 2011
1 parent 3c915c4 commit df3b06f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 443f483aa2494b93d73ba122cafdf2ef89989ed7
refs/heads/master: 2fbdc9bd42c993a6b179a4ddb972b551644aad6e
6 changes: 6 additions & 0 deletions trunk/drivers/media/video/sh_mobile_csi2.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ static int sh_csi2_client_connect(struct sh_csi2 *priv)
unsigned long common_flags, csi2_flags;
int i, ret;

if (priv->client)
return -EBUSY;

for (i = 0; i < pdata->num_clients; i++)
if (&pdata->clients[i].pdev->dev == icd->pdev)
break;
Expand Down Expand Up @@ -262,6 +265,9 @@ static int sh_csi2_client_connect(struct sh_csi2 *priv)

static void sh_csi2_client_disconnect(struct sh_csi2 *priv)
{
if (!priv->client)
return;

priv->client = NULL;

pm_runtime_put(v4l2_get_subdevdata(&priv->subdev));
Expand Down

0 comments on commit df3b06f

Please sign in to comment.