diff options
Diffstat (limited to 'drivers/media/video/gspca/mars.c')
-rw-r--r-- | drivers/media/video/gspca/mars.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/drivers/media/video/gspca/mars.c b/drivers/media/video/gspca/mars.c index d7e209578186..281475913a61 100644 --- a/drivers/media/video/gspca/mars.c +++ b/drivers/media/video/gspca/mars.c | |||
@@ -144,8 +144,8 @@ static int sd_config(struct gspca_dev *gspca_dev, | |||
144 | return 0; | 144 | return 0; |
145 | } | 145 | } |
146 | 146 | ||
147 | /* this function is called at open time */ | 147 | /* this function is called at probe and resume time */ |
148 | static int sd_open(struct gspca_dev *gspca_dev) | 148 | static int sd_init(struct gspca_dev *gspca_dev) |
149 | { | 149 | { |
150 | return 0; | 150 | return 0; |
151 | } | 151 | } |
@@ -358,14 +358,6 @@ static void sd_stopN(struct gspca_dev *gspca_dev) | |||
358 | PDEBUG(D_ERR, "Camera Stop failed"); | 358 | PDEBUG(D_ERR, "Camera Stop failed"); |
359 | } | 359 | } |
360 | 360 | ||
361 | static void sd_stop0(struct gspca_dev *gspca_dev) | ||
362 | { | ||
363 | } | ||
364 | |||
365 | static void sd_close(struct gspca_dev *gspca_dev) | ||
366 | { | ||
367 | } | ||
368 | |||
369 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, | 361 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, |
370 | struct gspca_frame *frame, /* target */ | 362 | struct gspca_frame *frame, /* target */ |
371 | __u8 *data, /* isoc packet */ | 363 | __u8 *data, /* isoc packet */ |
@@ -411,11 +403,9 @@ static const struct sd_desc sd_desc = { | |||
411 | .ctrls = sd_ctrls, | 403 | .ctrls = sd_ctrls, |
412 | .nctrls = ARRAY_SIZE(sd_ctrls), | 404 | .nctrls = ARRAY_SIZE(sd_ctrls), |
413 | .config = sd_config, | 405 | .config = sd_config, |
414 | .open = sd_open, | 406 | .init = sd_init, |
415 | .start = sd_start, | 407 | .start = sd_start, |
416 | .stopN = sd_stopN, | 408 | .stopN = sd_stopN, |
417 | .stop0 = sd_stop0, | ||
418 | .close = sd_close, | ||
419 | .pkt_scan = sd_pkt_scan, | 409 | .pkt_scan = sd_pkt_scan, |
420 | }; | 410 | }; |
421 | 411 | ||