Skip to content

Commit b4fb90f

Browse files
Philipp Stannerkwilczynski
authored andcommitted
Documentation/driver-api: Update pcim_enable_device()
pcim_enable_device() is not related anymore to switching the mode of operation of any functions. It merely sets up a devres callback for automatically disabling the PCI device on driver detach. Adjust the function's documentation. Signed-off-by: Philipp Stanner <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]> Reviewed-by: Kuppuswamy Sathyanarayanan <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 51f6aec commit b4fb90f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/driver-api/driver-model/devres.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ PCI
391391
devm_pci_remap_cfgspace() : ioremap PCI configuration space
392392
devm_pci_remap_cfg_resource() : ioremap PCI configuration space resource
393393

394-
pcim_enable_device() : after success, some PCI ops become managed
394+
pcim_enable_device() : after success, the PCI device gets disabled automatically on driver detach
395395
pcim_iomap() : do iomap() on a single BAR
396396
pcim_iomap_regions() : do request_region() and iomap() on multiple BARs
397397
pcim_iomap_table() : array of mapped addresses indexed by BAR

0 commit comments

Comments
 (0)