diff options
Diffstat (limited to 'drivers/media/video/gspca/vc032x.c')
-rw-r--r-- | drivers/media/video/gspca/vc032x.c | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c index 5454f0eb0077..f8c3ff30e464 100644 --- a/drivers/media/video/gspca/vc032x.c +++ b/drivers/media/video/gspca/vc032x.c | |||
@@ -1477,8 +1477,8 @@ static int sd_config(struct gspca_dev *gspca_dev, | |||
1477 | return 0; | 1477 | return 0; |
1478 | } | 1478 | } |
1479 | 1479 | ||
1480 | /* this function is called at open time */ | 1480 | /* this function is called at probe and time */ |
1481 | static int sd_open(struct gspca_dev *gspca_dev) | 1481 | static int sd_init(struct gspca_dev *gspca_dev) |
1482 | { | 1482 | { |
1483 | return 0; | 1483 | return 0; |
1484 | } | 1484 | } |
@@ -1640,19 +1640,6 @@ static void sd_stop0(struct gspca_dev *gspca_dev) | |||
1640 | reg_w(dev, 0x89, 0xffff, 0xffff); | 1640 | reg_w(dev, 0x89, 0xffff, 0xffff); |
1641 | } | 1641 | } |
1642 | 1642 | ||
1643 | /* this function is called at close time */ | ||
1644 | static void sd_close(struct gspca_dev *gspca_dev) | ||
1645 | { | ||
1646 | /* struct usb_device *dev = gspca_dev->dev; | ||
1647 | __u8 buffread; | ||
1648 | |||
1649 | reg_w(dev, 0x89, 0xffff, 0xffff); | ||
1650 | reg_w(dev, 0xa0, 0x01, 0xb301); | ||
1651 | reg_w(dev, 0xa0, 0x09, 0xb303); | ||
1652 | reg_w(dev, 0x89, 0xffff, 0xffff); | ||
1653 | */ | ||
1654 | } | ||
1655 | |||
1656 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, | 1643 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, |
1657 | struct gspca_frame *frame, /* target */ | 1644 | struct gspca_frame *frame, /* target */ |
1658 | __u8 *data, /* isoc packet */ | 1645 | __u8 *data, /* isoc packet */ |
@@ -1741,11 +1728,10 @@ static const struct sd_desc sd_desc = { | |||
1741 | .ctrls = sd_ctrls, | 1728 | .ctrls = sd_ctrls, |
1742 | .nctrls = ARRAY_SIZE(sd_ctrls), | 1729 | .nctrls = ARRAY_SIZE(sd_ctrls), |
1743 | .config = sd_config, | 1730 | .config = sd_config, |
1744 | .open = sd_open, | 1731 | .init = sd_init, |
1745 | .start = sd_start, | 1732 | .start = sd_start, |
1746 | .stopN = sd_stopN, | 1733 | .stopN = sd_stopN, |
1747 | .stop0 = sd_stop0, | 1734 | .stop0 = sd_stop0, |
1748 | .close = sd_close, | ||
1749 | .pkt_scan = sd_pkt_scan, | 1735 | .pkt_scan = sd_pkt_scan, |
1750 | .querymenu = sd_querymenu, | 1736 | .querymenu = sd_querymenu, |
1751 | }; | 1737 | }; |