From 790c440a5e5b54d281fcf17f0c429a75e845883a Mon Sep 17 00:00:00 2001 From: Patrik Jakobsson Date: Wed, 26 Oct 2016 16:55:58 +0200 Subject: [PATCH] fthd: Remove dead code Signed-off-by: Patrik Jakobsson --- fthd_buffer.h | 2 -- fthd_isp.c | 6 ------ 2 files changed, 8 deletions(-) diff --git a/fthd_buffer.h b/fthd_buffer.h index 4ef7fac..467ae44 100644 --- a/fthd_buffer.h +++ b/fthd_buffer.h @@ -75,11 +75,9 @@ struct h2t_buf_ctx { int done; }; -extern int setup_buffers(struct fthd_private *dev_priv); extern int fthd_buffer_init(struct fthd_private *dev_priv); extern void fthd_buffer_exit(struct fthd_private *dev_priv); extern void fthd_buffer_return_handler(struct fthd_private *dev_priv, u32 offset, int size); -extern void fthd_buffer_queued_handler(struct fthd_private *dev_priv, u32 offset); extern struct iommu_obj *fthd_iommu_alloc_sgtable(struct fthd_private *dev_priv, struct sg_table *); extern void fthd_iommu_free(struct fthd_private *dev_priv, struct iommu_obj *obj); #endif diff --git a/fthd_isp.c b/fthd_isp.c index ddeca7b..95cd20b 100644 --- a/fthd_isp.c +++ b/fthd_isp.c @@ -133,11 +133,6 @@ out: return ret; } -static int isp_enable_sensor(struct fthd_private *dev_priv) -{ - return 0; -} - static int isp_load_firmware(struct fthd_private *dev_priv) { const struct firmware *fw; @@ -1285,7 +1280,6 @@ int isp_init(struct fthd_private *dev_priv) pci_set_power_state(dev_priv->pdev, PCI_D0); mdelay(10); - isp_enable_sensor(dev_priv); FTHD_ISP_REG_WRITE(0, ISP_FW_CHAN_CTRL); FTHD_ISP_REG_WRITE(0, ISP_FW_QUEUE_CTRL); FTHD_ISP_REG_WRITE(0, ISP_FW_SIZE);