Exemple #1
0
static void __exit exit_pcmcia_bus(void)
{
	pcmcia_cleanup_ioctl();

	class_interface_unregister(&pcmcia_bus_interface);

	bus_unregister(&pcmcia_bus_type);
}
Exemple #2
0
/*
 * test_classint_reg
 *	make test call to class_interface_register
 *	and if that returns successfule then
 *	make call to class_interface_unregister
 */
static int test_classint_reg() {

	if (class_interface_register(&test_interface)) {
		printk("tbase: Failed to register class interface\n");
		return 1;
	}
	else {
		printk("tbase: Registered class interface\n");
		class_interface_unregister(&test_interface);
		return 0;
	}

}
Exemple #3
0
static void __exit exit_pcmcia_bus(void)
{
    class_interface_unregister(&pcmcia_bus_interface);

#ifdef CONFIG_PROC_FS
    if (proc_pccard) {
        remove_proc_entry("drivers", proc_pccard);
        remove_proc_entry("pccard", proc_bus);
    }
#endif
    if (major_dev != -1)
        unregister_chrdev(major_dev, "pcmcia");

    bus_unregister(&pcmcia_bus_type);
}
static void __exit rtc_proc_exit(void)
{
	class_interface_unregister(&rtc_proc_interface);
}
Exemple #5
0
static void __exit nonstatic_sysfs_exit(void)
{
	class_interface_unregister(&pccard_rsrc_interface);
}
Exemple #6
0
static void __exit rtc_sysfs_exit(void)
{
	class_interface_unregister(&rtc_sysfs_interface);
}