jhb
e3088a4b83
Set the devclass_t pointer specified in the DRIVER_MODULE() macro
...
sooner so it is always valid when a driver's identify routine is
called. Previously, new-bus would attempt to create the devclass for
a newly loaded driver in two separate places, once in
devclass_add_driver(), and again after devclass_add_driver() returned
in driver_module_handler(). Only the second lookup attempted to set a
device class' parent and set the devclass_t pointer specified in the
DRIVER_MODULE() macro. However, by the time it was executed, the
driver was already added to existing instances of the parent driver at
which point in time the new driver's identify routine would have been
invoked. The fix is to merge the two attempts and only create the
devclass once in devclass_add_driver() including setting the
devclass_t pointer passed to DRIVER_MODULE() before the driver is
added to any existing bus devices.
Reported by: avg
Reviewed by: imp
MFC after: 2 weeks
2009-10-22 14:53:44 +00:00
..
2009-10-15 14:54:35 +00:00
2008-11-22 12:36:15 +00:00
2009-10-18 12:57:48 +00:00
2008-08-28 15:23:18 +00:00
2009-10-20 16:36:51 +00:00
2009-09-30 08:48:59 +00:00
2009-06-16 15:13:45 +00:00
2009-06-21 13:41:32 +00:00
2009-05-18 12:03:43 +00:00
2009-02-26 13:00:13 +00:00
2009-08-28 14:06:55 +00:00
2009-08-24 10:53:30 +00:00
2009-05-31 08:59:15 +00:00
2009-06-23 14:39:21 +00:00
2008-05-23 03:04:27 +00:00
2009-09-28 16:59:47 +00:00
2008-06-16 04:44:29 +00:00
2009-06-05 14:55:22 +00:00
2009-10-10 14:56:34 +00:00
2009-10-02 17:48:51 +00:00
2009-10-10 21:17:30 +00:00
2009-05-27 16:36:54 +00:00
2009-09-01 11:41:51 +00:00
2008-03-16 10:58:09 +00:00
2009-10-15 18:51:19 +00:00
2009-09-08 13:19:05 +00:00
2009-09-01 11:41:51 +00:00
2009-06-05 14:55:22 +00:00
2009-09-08 13:19:05 +00:00
2009-10-03 15:02:55 +00:00
2009-06-25 18:54:56 +00:00
2009-05-26 20:28:22 +00:00
2009-06-05 09:16:52 +00:00
2009-07-12 23:31:20 +00:00
2009-09-18 17:04:57 +00:00
2008-12-05 16:47:30 +00:00
2008-10-23 20:26:15 +00:00
2009-09-08 13:19:05 +00:00
2008-03-16 10:58:09 +00:00
2009-05-29 10:52:37 +00:00
2008-09-22 10:37:02 +00:00
2009-08-15 23:07:43 +00:00
2009-06-05 14:55:22 +00:00
2009-10-01 21:44:30 +00:00
2009-07-17 14:48:21 +00:00
2009-06-23 20:45:22 +00:00
2009-05-29 14:25:51 +00:00
2009-09-30 13:26:31 +00:00
2008-05-18 19:32:36 +00:00
2009-09-10 18:24:59 +00:00
2009-10-12 15:49:48 +00:00
2009-08-23 09:55:06 +00:00
2009-06-25 01:33:51 +00:00
2009-09-30 13:26:31 +00:00
2009-07-14 22:52:46 +00:00
2008-09-18 20:10:11 +00:00
2009-08-13 10:26:34 +00:00
2009-04-11 22:01:40 +00:00
2009-10-11 16:49:30 +00:00
2009-09-01 11:41:51 +00:00
2009-04-10 10:52:19 +00:00
2009-09-12 21:44:34 +00:00
2009-09-25 00:03:13 +00:00
2009-08-23 20:40:19 +00:00
2009-05-29 21:27:12 +00:00
2009-07-20 07:50:50 +00:00
2009-07-14 22:48:30 +00:00
2009-06-11 17:05:45 +00:00
2008-12-01 14:34:42 +00:00
2009-06-24 13:36:37 +00:00
2008-03-12 10:12:01 +00:00
2009-01-25 07:35:10 +00:00
2009-10-15 11:41:12 +00:00
2009-10-20 16:36:51 +00:00
2009-09-22 15:15:03 +00:00
2009-10-01 17:22:03 +00:00
2009-02-03 07:52:07 +00:00
2008-10-23 15:53:51 +00:00
2008-11-22 05:55:56 +00:00
2009-10-22 14:53:44 +00:00
2008-04-22 19:38:30 +00:00
2009-09-18 13:48:38 +00:00
2009-02-13 11:36:32 +00:00
2008-03-16 10:58:09 +00:00
2009-02-03 07:51:11 +00:00
2009-08-13 17:09:45 +00:00
2009-02-03 07:54:42 +00:00
2009-03-15 06:41:47 +00:00
2008-03-16 10:58:09 +00:00
2008-03-25 09:39:02 +00:00
2009-07-08 01:09:12 +00:00
2009-08-12 12:06:16 +00:00
2009-02-27 13:28:54 +00:00
2009-02-03 07:52:36 +00:00
2009-05-19 14:08:21 +00:00
2009-03-23 21:16:21 +00:00
2008-08-09 10:26:21 +00:00
2009-08-21 02:59:07 +00:00
2009-07-14 22:52:46 +00:00
2009-09-21 13:09:56 +00:00
2009-06-24 12:06:15 +00:00
2009-08-18 13:55:48 +00:00
2009-10-11 16:49:30 +00:00
2008-09-15 22:45:14 +00:00
2009-09-06 13:31:05 +00:00
2009-09-09 20:59:01 +00:00
2009-09-12 20:03:45 +00:00
2009-10-21 18:38:02 +00:00
2009-08-01 19:26:27 +00:00
2009-09-30 08:48:59 +00:00
2009-09-30 08:46:01 +00:00
2009-07-08 15:25:27 +00:00
2009-06-24 21:10:52 +00:00
2009-06-24 21:10:52 +00:00
2009-06-24 21:10:52 +00:00
2009-06-25 17:11:27 +00:00
2008-09-04 16:30:53 +00:00
2009-05-17 16:17:48 +00:00
2009-05-21 16:48:06 +00:00
2009-02-26 10:28:32 +00:00
2009-09-12 20:03:45 +00:00
2008-06-03 12:38:00 +00:00
2009-10-17 08:59:41 +00:00
2009-10-19 07:17:37 +00:00
2008-10-23 15:53:51 +00:00
2009-01-03 13:24:08 +00:00
2009-05-26 09:19:21 +00:00
2009-08-24 10:03:41 +00:00
2009-06-05 14:55:22 +00:00
2009-06-22 22:20:38 +00:00
2009-09-12 20:03:45 +00:00
2009-06-05 14:55:22 +00:00
2009-06-23 20:45:22 +00:00
2009-06-22 21:46:40 +00:00
2009-10-02 21:31:15 +00:00
2009-10-01 12:50:26 +00:00
2009-10-05 22:23:12 +00:00
2009-10-05 19:56:56 +00:00
2009-09-12 20:03:45 +00:00
2009-07-19 20:25:59 +00:00
2009-08-14 10:57:28 +00:00
2009-06-30 19:39:17 +00:00
2009-10-01 17:22:03 +00:00
2009-09-28 18:07:16 +00:00
2009-06-27 13:58:44 +00:00
2008-03-16 10:58:09 +00:00
2009-02-06 14:51:32 +00:00
2009-07-29 07:44:43 +00:00
2009-07-31 13:40:06 +00:00
2009-10-01 17:22:03 +00:00
2009-09-06 11:44:46 +00:00
2009-09-28 16:59:47 +00:00
2009-06-21 19:21:01 +00:00