summaryrefslogtreecommitdiff
path: root/usr/src/uts/sun4u/os/mach_ddi_impl.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/sun4u/os/mach_ddi_impl.c')
-rw-r--r--usr/src/uts/sun4u/os/mach_ddi_impl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/uts/sun4u/os/mach_ddi_impl.c b/usr/src/uts/sun4u/os/mach_ddi_impl.c
index 05d18b5ca8..195d86520b 100644
--- a/usr/src/uts/sun4u/os/mach_ddi_impl.c
+++ b/usr/src/uts/sun4u/os/mach_ddi_impl.c
@@ -20,7 +20,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -989,8 +989,8 @@ e_ddi_branch_unconfigure(
if (flags & DEVI_BRANCH_EVENT)
nflags |= NDI_POST_EVENT;
- if (i_ddi_node_state(pdip) == DS_READY &&
- i_ddi_node_state(rdip) >= DS_INITIALIZED) {
+ if (i_ddi_devi_attached(pdip) &&
+ (i_ddi_node_state(rdip) >= DS_INITIALIZED)) {
rv = ndi_devi_unconfig_one(pdip, devnm+1, dipp, nflags);
} else {
rv = e_ddi_devi_unconfig(rdip, dipp, nflags);