35c35
< * $FreeBSD: head/sys/geom/geom_disk.c 115468 2003-05-31 16:59:27Z phk $
---
> * $FreeBSD: head/sys/geom/geom_disk.c 115473 2003-05-31 18:13:07Z phk $
60a61,62
> static g_init_t g_disk_init;
> static g_fini_t g_disk_fini;
63a66,67
> .init = g_disk_init,
> .fini = g_disk_fini,
67c71
< g_disk_init(void)
---
> g_disk_init(struct g_class *mp __unused)
69,70c73
< mtx_unlock(&Giant);
< g_add_class(&g_disk_class);
---
>
72d74
< mtx_lock(&Giant);
75c77,79
< DECLARE_GEOM_CLASS_INIT(g_disk_class, g_disk, g_disk_init);
---
> static void
> g_disk_fini(struct g_class *mp __unused)
> {
76a81,85
> mtx_destroy(&g_disk_done_mtx);
> }
>
> DECLARE_GEOM_CLASS(g_disk_class, g_disk);
>
< * $FreeBSD: head/sys/geom/geom_disk.c 115468 2003-05-31 16:59:27Z phk $
---
> * $FreeBSD: head/sys/geom/geom_disk.c 115473 2003-05-31 18:13:07Z phk $
60a61,62
> static g_init_t g_disk_init;
> static g_fini_t g_disk_fini;
63a66,67
> .init = g_disk_init,
> .fini = g_disk_fini,
67c71
< g_disk_init(void)
---
> g_disk_init(struct g_class *mp __unused)
69,70c73
< mtx_unlock(&Giant);
< g_add_class(&g_disk_class);
---
>
72d74
< mtx_lock(&Giant);
75c77,79
< DECLARE_GEOM_CLASS_INIT(g_disk_class, g_disk, g_disk_init);
---
> static void
> g_disk_fini(struct g_class *mp __unused)
> {
76a81,85
> mtx_destroy(&g_disk_done_mtx);
> }
>
> DECLARE_GEOM_CLASS(g_disk_class, g_disk);
>