Don't assume wd_softc embeds a struct device.

This commit is contained in:
cube 2008-03-19 23:43:41 +00:00
parent e0f590bc15
commit 384b03ce27
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ata_raid.c,v 1.24 2008/01/02 11:48:36 ad Exp $ */
/* $NetBSD: ata_raid.c,v 1.25 2008/03/19 23:43:41 cube Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ata_raid.c,v 1.24 2008/01/02 11:48:36 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: ata_raid.c,v 1.25 2008/03/19 23:43:41 cube Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@ -236,7 +236,7 @@ ataraid_print(void *aux, const char *pnp)
void
ata_raid_check_component(struct device *self)
{
struct wd_softc *sc = (void *) self;
struct wd_softc *sc = device_private(self);
if (ata_raid_read_config_adaptec(sc) == 0)
return;