From c77a83e778b564a34d3a276c9893b3408af9442d Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Mon, 19 Feb 2007 12:06:17 +0000 Subject: actually init and destroy the shared ata stuff when an atascsi instance is created or destroyed. --- sys/dev/ata/atascsi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 @@ -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); } -- cgit v1.2.3