Following is a simple patch to remove deprecated MOD_INC_USE_COUNT from
md.c.
If it looks good, please apply.
Thanks,
Paul
--- md.c.PRISTINE 2003-04-22 12:59:37.000000000 -0400
+++ md.c 2003-04-22 12:59:50.000000000 -0400
@@ -181,7 +181,6 @@ static void mddev_put(mddev_t *mddev)
list_del(&mddev->all_mddevs);
mddev_map[mdidx(mddev)] = NULL;
kfree(mddev);
- MOD_DEC_USE_COUNT;
}
spin_unlock(&all_mddevs_lock);
}
@@ -203,7 +202,6 @@ static mddev_t * mddev_find(int unit)
mddev_map[unit] = new;
list_add(&new->all_mddevs, &all_mddevs);
spin_unlock(&all_mddevs_lock);
- MOD_INC_USE_COUNT;
return new;
}
spin_unlock(&all_mddevs_lock);