FIX-Problem: use counter armflash.c
neuber at convergence.de
Wed May 2 11:36:06 EDT 2001
I was playing with mtd's on an arm integrator board.
I think I found a bug in the clean up sequence of the module armflash.
The use counter never counts down when I unload the module armflash.
Here is my patch to correct this behavior:
< int i;
< struct mtd_info *ret, *mtd;
< for (i=0; i < MAX_MTD_DEVICES; i++)
< mtd = NULL;
< ret = __get_mtd_device(mtd, i);
< // printk("count down %d usecount %d\n",i, ret);
< printk("cleanup %d failed\n",i);
There is another usecounter problem in armflash. In the afs_cfi_init()
function do_map_probe() is called. After this call the usecount
of the module cfi_cmdset_0001 is incremented and would never be
How can I fix this behaviour?
Is there anybody who is working with mtd's on arm-integrator?
Dipl.-Ing. Elektrotechnik convergence integrated media gmbh / HW
Frank Neuber Rosenthalerstr.51 / 10178 Berlin
Email: neuber at convergence.de Phone: +49(0)30-72 62 06 50
WWW: www.convergence.de Fax: +49(0)30-72 62 06 55
More information about the linux-mtd