• Patrick Mochel's avatar
    driver model: clean up bus_for_each_{dev,drv} · ec0a28d2
    Patrick Mochel authored
    - make sure we check what we get back from get_bus()
    - do down_read() instead of down_write(), so multiple people can do iterations
      concurrently.
    - Note that devices and drivers are removed from these while doing a down_write(), 
      so all removals will be stalled until the iterators are done.
     
    ec0a28d2
bus.c 7 KB