diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2007-02-19 12:06:17 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2007-02-19 12:06:17 +0000 |
commit | c77a83e778b564a34d3a276c9893b3408af9442d (patch) | |
tree | d2d07b5ecff61307df4c7bfd90c958e132f231b6 | |
parent | d8c36eb7b3ac43753d22eb50fb34cc00b7aeb14a (diff) |
actually init and destroy the shared ata stuff when an atascsi instance
is created or destroyed.
-rw-r--r-- | sys/dev/ata/atascsi.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/ata/atascsi.c b/sys/dev/ata/atascsi.c index 69aaad24b3e..dbd96b6376e 100644 --- a/sys/dev/ata/atascsi.c +++ b/sys/dev/ata/atascsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atascsi.c,v 1.6 2007/02/19 12:04:01 dlg Exp $ */ +/* $OpenBSD: atascsi.c,v 1.7 2007/02/19 12:06:16 dlg Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -88,6 +88,8 @@ atascsi_attach(struct device *self, struct atascsi_attach_args *aaa) struct atascsi *as; int i; + ata_init(); + as = malloc(sizeof(struct atascsi), M_DEVBUF, M_WAITOK); bzero(as, sizeof(struct atascsi)); @@ -129,6 +131,8 @@ atascsi_attach(struct device *self, struct atascsi_attach_args *aaa) int atascsi_detach(struct atascsi *as) { + ata_destroy(); + return (0); } |