Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

static int mxc_pf_release ( struct inode *  inode,
struct file *  filp 
) [static]

Post Filter driver release function. This function implements the Linux file_operations.release() API function.

Parameters:
inode struct inode *
filp struct file *
Returns:
This function returns 0 on success or negative error code on error.

Definition at line 580 of file mxc_pf.c.

References pf_reqbufs_params::count, mxc_pf_reqbufs(), and mxc_pf_uninit().

{
      pf_reqbufs_params req_buf;

      if (open_count) {
            mxc_pf_uninit();

            /* Free any allocated buffers */
            req_buf.count = 0;
            mxc_pf_reqbufs(&req_buf);

            ipu_free_irq(IPU_IRQ_PF_V_OUT_EOF, &pf_data);
            ipu_free_irq(IPU_IRQ_PF_U_OUT_EOF, &pf_data);
            ipu_free_irq(IPU_IRQ_PF_Y_OUT_EOF, &pf_data);
            open_count--;
      }
      return 0;
}


Generated by  Doxygen 1.6.0   Back to index