aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/etoms.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/gspca/etoms.c')
-rw-r--r--drivers/media/video/gspca/etoms.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/drivers/media/video/gspca/etoms.c b/drivers/media/video/gspca/etoms.c
index e5a9eee673a9..c03b1f45de10 100644
--- a/drivers/media/video/gspca/etoms.c
+++ b/drivers/media/video/gspca/etoms.c
@@ -676,8 +676,8 @@ static int sd_config(struct gspca_dev *gspca_dev,
676 return 0; 676 return 0;
677} 677}
678 678
679/* this function is called at open time */ 679/* this function is called at probe and resume time */
680static int sd_open(struct gspca_dev *gspca_dev) 680static int sd_init(struct gspca_dev *gspca_dev)
681{ 681{
682 struct sd *sd = (struct sd *) gspca_dev; 682 struct sd *sd = (struct sd *) gspca_dev;
683 683
@@ -711,14 +711,6 @@ static void sd_stopN(struct gspca_dev *gspca_dev)
711 et_video(gspca_dev, 0); /* video off */ 711 et_video(gspca_dev, 0); /* video off */
712} 712}
713 713
714static void sd_stop0(struct gspca_dev *gspca_dev)
715{
716}
717
718static void sd_close(struct gspca_dev *gspca_dev)
719{
720}
721
722static __u8 Et_getgainG(struct gspca_dev *gspca_dev) 714static __u8 Et_getgainG(struct gspca_dev *gspca_dev)
723{ 715{
724 struct sd *sd = (struct sd *) gspca_dev; 716 struct sd *sd = (struct sd *) gspca_dev;
@@ -895,11 +887,9 @@ static struct sd_desc sd_desc = {
895 .ctrls = sd_ctrls, 887 .ctrls = sd_ctrls,
896 .nctrls = ARRAY_SIZE(sd_ctrls), 888 .nctrls = ARRAY_SIZE(sd_ctrls),
897 .config = sd_config, 889 .config = sd_config,
898 .open = sd_open, 890 .init = sd_init,
899 .start = sd_start, 891 .start = sd_start,
900 .stopN = sd_stopN, 892 .stopN = sd_stopN,
901 .stop0 = sd_stop0,
902 .close = sd_close,
903 .pkt_scan = sd_pkt_scan, 893 .pkt_scan = sd_pkt_scan,
904 .dq_callback = do_autogain, 894 .dq_callback = do_autogain,
905}; 895};