From 7a635f0d70a56cfbcadebdbced44cb4e31d1b16e Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 8 Jan 2015 21:46:28 +0000 Subject: [PATCH] Change the default method for device_quiesce() to return 0 instead of EOPNOTSUPP. The current behavior can mask real quiesce errors since devclass_quiesce_driver() stops iterating over drivers as soon as it gets an error (incluiding EOPNOTSUPP), but the caller it returns the error to explicitly ignores EOPNOTSUPP. Reviewed by: imp --- sys/kern/device_if.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/device_if.m b/sys/kern/device_if.m index eb720eb69dc..a5319c61091 100644 --- a/sys/kern/device_if.m +++ b/sys/kern/device_if.m @@ -60,7 +60,7 @@ CODE { static int null_quiesce(device_t dev) { - return EOPNOTSUPP; + return 0; } };