diff options
Diffstat (limited to 'drivers/media/video/pxa_camera.c')
-rw-r--r-- | drivers/media/video/pxa_camera.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/media/video/pxa_camera.c b/drivers/media/video/pxa_camera.c index cf96b2cc4f1c..14569b591388 100644 --- a/drivers/media/video/pxa_camera.c +++ b/drivers/media/video/pxa_camera.c | |||
@@ -629,17 +629,6 @@ static void pxa_camera_activate(struct pxa_camera_dev *pcdev) | |||
629 | pdata->init(pcdev->dev); | 629 | pdata->init(pcdev->dev); |
630 | } | 630 | } |
631 | 631 | ||
632 | if (pdata && pdata->power) { | ||
633 | dev_dbg(pcdev->dev, "%s: Power on camera\n", __func__); | ||
634 | pdata->power(pcdev->dev, 1); | ||
635 | } | ||
636 | |||
637 | if (pdata && pdata->reset) { | ||
638 | dev_dbg(pcdev->dev, "%s: Releasing camera reset\n", | ||
639 | __func__); | ||
640 | pdata->reset(pcdev->dev, 1); | ||
641 | } | ||
642 | |||
643 | CICR0 = 0x3FF; /* disable all interrupts */ | 632 | CICR0 = 0x3FF; /* disable all interrupts */ |
644 | 633 | ||
645 | if (pcdev->platform_flags & PXA_CAMERA_PCLK_EN) | 634 | if (pcdev->platform_flags & PXA_CAMERA_PCLK_EN) |
@@ -660,20 +649,7 @@ static void pxa_camera_activate(struct pxa_camera_dev *pcdev) | |||
660 | 649 | ||
661 | static void pxa_camera_deactivate(struct pxa_camera_dev *pcdev) | 650 | static void pxa_camera_deactivate(struct pxa_camera_dev *pcdev) |
662 | { | 651 | { |
663 | struct pxacamera_platform_data *board = pcdev->pdata; | ||
664 | |||
665 | clk_disable(pcdev->clk); | 652 | clk_disable(pcdev->clk); |
666 | |||
667 | if (board && board->reset) { | ||
668 | dev_dbg(pcdev->dev, "%s: Asserting camera reset\n", | ||
669 | __func__); | ||
670 | board->reset(pcdev->dev, 0); | ||
671 | } | ||
672 | |||
673 | if (board && board->power) { | ||
674 | dev_dbg(pcdev->dev, "%s: Power off camera\n", __func__); | ||
675 | board->power(pcdev->dev, 0); | ||
676 | } | ||
677 | } | 653 | } |
678 | 654 | ||
679 | static irqreturn_t pxa_camera_irq(int irq, void *data) | 655 | static irqreturn_t pxa_camera_irq(int irq, void *data) |