Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137758
b: refs/heads/master
c: d5b53f4
h: refs/heads/master
v: v3
  • Loading branch information
Erik Andren authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 112c659 commit 2eaa86c
Show file tree
Hide file tree
Showing 3 changed files with 9 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: 11fb06bd8da59c0a516e1b5f3d200a484becdf06
refs/heads/master: d5b53f467bf5c2d0dbd5b043461275255073886d
6 changes: 6 additions & 0 deletions trunk/drivers/media/video/gspca/stv06xx/stv06xx_pb0100.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,12 @@ static int pb0100_stop(struct sd *sd)
return (err < 0) ? err : 0;
}

static void pb0100_disconnect(struct sd *sd)
{
sd->sensor = NULL;
kfree(sd->sensor_priv);
}

/* FIXME: Sort the init commands out and put them into tables,
this is only for getting the camera to work */
/* FIXME: No error handling for now,
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/media/video/gspca/stv06xx/stv06xx_pb0100.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ static int pb0100_start(struct sd *sd);
static int pb0100_init(struct sd *sd);
static int pb0100_stop(struct sd *sd);
static int pb0100_dump(struct sd *sd);
static void pb0100_disconnect(struct sd *sd);

/* V4L2 controls supported by the driver */
static int pb0100_get_gain(struct gspca_dev *gspca_dev, __s32 *val);
Expand Down Expand Up @@ -142,6 +143,7 @@ const struct stv06xx_sensor stv06xx_sensor_pb0100 = {
.start = pb0100_start,
.stop = pb0100_stop,
.dump = pb0100_dump,
.disconnect = pb0100_disconnect,
};

#endif

0 comments on commit 2eaa86c

Please sign in to comment.