Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/acorn32/mainbus Use device_private().
details: https://anonhg.NetBSD.org/src/rev/a0350054bb2d
branches: trunk
changeset: 752388:a0350054bb2d
user: dyoung <dyoung%NetBSD.org@localhost>
date: Wed Feb 24 23:03:00 2010 +0000
description:
Use device_private().
diffstat:
sys/arch/acorn32/mainbus/fd.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r c9e3d1af2cef -r a0350054bb2d sys/arch/acorn32/mainbus/fd.c
--- a/sys/arch/acorn32/mainbus/fd.c Wed Feb 24 22:58:45 2010 +0000
+++ b/sys/arch/acorn32/mainbus/fd.c Wed Feb 24 23:03:00 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fd.c,v 1.46 2009/05/12 07:07:44 cegger Exp $ */
+/* $NetBSD: fd.c,v 1.47 2010/02/24 23:03:00 dyoung Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.46 2009/05/12 07:07:44 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.47 2010/02/24 23:03:00 dyoung Exp $");
#include "opt_ddb.h"
@@ -595,7 +595,8 @@
fdstart(fd);
#ifdef DIAGNOSTIC
else {
- struct fdc_softc *fdc = (void *) device_parent(&fd->sc_dev);
+ struct fdc_softc *fdc =
+ device_private(device_parent(&fd->sc_dev));
if (fdc->sc_state == DEVIDLE) {
printf("fdstrategy: controller inactive\n");
fdcstart(fdc);
Home |
Main Index |
Thread Index |
Old Index