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

static int mxc_asrc_remove ( struct platform_device *  pdev  )  [static]

Exit asrc device

Parameters:
pdev Pionter to the registered platform device
Returns:
Error code indicating success or failure

Definition at line 1642 of file mxc_asrc.c.

{
      free_irq(MXC_INT_ASRC, NULL);
      kfree(g_asrc_data);
      clk_disable(mxc_asrc_data->asrc_core_clk);
      mxc_asrc_data = NULL;
      iounmap((unsigned long __iomem *)asrc_vrt_base_addr);
      remove_proc_entry("ChSettings", proc_asrc);
      remove_proc_entry(ASRC_PROC_PATH, NULL);
      device_destroy(asrc_class, MKDEV(asrc_major, 0));
      class_destroy(asrc_class);
      unregister_chrdev(asrc_major, "mxc_asrc");
      return 0;
}


Generated by  Doxygen 1.6.0   Back to index