Exemplo n.º 1
0
Arquivo: bpp.c Projeto: 274914765/C
static void __exit bpp_cleanup(void)
{
    unsigned idx;

    unregister_chrdev(BPP_MAJOR, bpp_dev_name);

    for (idx = 0;  idx < BPP_NO; idx++) {
        if (instances[idx].present)
            freeLptPort(idx);
    }
}
Exemplo n.º 2
0
void cleanup_module(void)
{
	unsigned idx;

	unregister_chrdev(BPP_MAJOR, dev_name);

	for (idx = 0 ;  idx < BPP_NO ;  idx += 1) {
		if (instances[idx].present)
			freeLptPort(idx);
	}
}
Exemplo n.º 3
0
static void __exit bpp_cleanup(void)
{
	unsigned idx;

	for (idx = 0; idx < BPP_NO; idx++)
		devfs_remove("bpp/%d", idx);
	devfs_remove("bpp");
	unregister_chrdev(BPP_MAJOR, dev_name);

	for (idx = 0;  idx < BPP_NO; idx++) {
		if (instances[idx].present)
			freeLptPort(idx);
	}
}