title: What triggers the release of 'managed' pci resources?
body: <p>If a driver calls <code>pcim_enable_device()</code>, then uses <code>pcim_iomap()</code>, <code>devm_request_irq()</code>, and other managed calls to allocate hardware resources, how does a driver tell the kernel to release those resources?</p>
  
  <p><code>pcim_release</code> isn't an exported symbol, so something else must cause <code>devres_free()</code> to be called.  But what?</p>
  
  <p>Note: I don't need directions on how to release resources manually.  I want to know how to get the <code>devres</code> subsystem to release everything.  That's what it's for, after all.</p>