提交 17078647 编写于 作者: H H Hartley Sweeten 提交者: Greg Kroah-Hartman

staging: dt3155v4l: remove irq_handler from struct dt3155_priv

There is no reason to cache the irq_handler in struct dt3155_priv.  Just pass
the function directly in request_irq.
Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 f748b65b
...@@ -406,8 +406,7 @@ dt3155_open(struct file *filp) ...@@ -406,8 +406,7 @@ dt3155_open(struct file *filp)
/* disable all irqs, clear all irq flags */ /* disable all irqs, clear all irq flags */
iowrite32(FLD_START | FLD_END_EVEN | FLD_END_ODD, iowrite32(FLD_START | FLD_END_EVEN | FLD_END_ODD,
pd->regs + INT_CSR); pd->regs + INT_CSR);
pd->irq_handler = dt3155_irq_handler_even; ret = request_irq(pd->pdev->irq, dt3155_irq_handler_even,
ret = request_irq(pd->pdev->irq, pd->irq_handler,
IRQF_SHARED, DT3155_NAME, pd); IRQF_SHARED, DT3155_NAME, pd);
if (ret) if (ret)
goto err_request_irq; goto err_request_irq;
......
...@@ -183,7 +183,6 @@ struct dt3155_stats { ...@@ -183,7 +183,6 @@ struct dt3155_stats {
* @q pointer to vb2_queue structure * @q pointer to vb2_queue structure
* @curr_buf: pointer to curren buffer * @curr_buf: pointer to curren buffer
* @mux: mutex to protect the instance * @mux: mutex to protect the instance
* @irq_handler: irq handler for the driver
* @dmaq queue for dma buffers * @dmaq queue for dma buffers
* @lock spinlock for dma queue * @lock spinlock for dma queue
* @field_count fields counter * @field_count fields counter
...@@ -199,7 +198,6 @@ struct dt3155_priv { ...@@ -199,7 +198,6 @@ struct dt3155_priv {
struct vb2_queue *q; struct vb2_queue *q;
struct vb2_buffer *curr_buf; struct vb2_buffer *curr_buf;
struct mutex mux; struct mutex mux;
irq_handler_t irq_handler;
struct list_head dmaq; struct list_head dmaq;
spinlock_t lock; spinlock_t lock;
unsigned int field_count; unsigned int field_count;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册