Skip to content

Commit 90ffe1f

Browse files
Philipp Stannerkwilczynski
authored andcommitted
PCI: Remove hybrid-devres usage warnings from kernel-doc
pci/iomap.c still contains warnings about those functions not behaving in a managed manner if pcim_enable_device() was called. Since all hybrid behavior that users could know about has been removed by now, those explicit warnings are no longer necessary. Remove the hybrid-devres usage warnings from the kernel-doc. Signed-off-by: Philipp Stanner <[email protected]> [kwilczynski: commit log] Signed-off-by: Krzysztof Wilczyński <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Reviewed-by: Kuppuswamy Sathyanarayanan <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent bcfc671 commit 90ffe1f

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

drivers/pci/iomap.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@
2525
*
2626
* @maxlen specifies the maximum length to map. If you want to get access to
2727
* the complete BAR from offset to the end, pass %0 here.
28-
*
29-
* NOTE:
30-
* This function is never managed, even if you initialized with
31-
* pcim_enable_device().
3228
* */
3329
void __iomem *pci_iomap_range(struct pci_dev *dev,
3430
int bar,
@@ -76,10 +72,6 @@ EXPORT_SYMBOL(pci_iomap_range);
7672
*
7773
* @maxlen specifies the maximum length to map. If you want to get access to
7874
* the complete BAR from offset to the end, pass %0 here.
79-
*
80-
* NOTE:
81-
* This function is never managed, even if you initialized with
82-
* pcim_enable_device().
8375
* */
8476
void __iomem *pci_iomap_wc_range(struct pci_dev *dev,
8577
int bar,
@@ -127,10 +119,6 @@ EXPORT_SYMBOL_GPL(pci_iomap_wc_range);
127119
*
128120
* @maxlen specifies the maximum length to map. If you want to get access to
129121
* the complete BAR without checking for its length first, pass %0 here.
130-
*
131-
* NOTE:
132-
* This function is never managed, even if you initialized with
133-
* pcim_enable_device(). If you need automatic cleanup, use pcim_iomap().
134122
* */
135123
void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen)
136124
{
@@ -152,10 +140,6 @@ EXPORT_SYMBOL(pci_iomap);
152140
*
153141
* @maxlen specifies the maximum length to map. If you want to get access to
154142
* the complete BAR without checking for its length first, pass %0 here.
155-
*
156-
* NOTE:
157-
* This function is never managed, even if you initialized with
158-
* pcim_enable_device().
159143
* */
160144
void __iomem *pci_iomap_wc(struct pci_dev *dev, int bar, unsigned long maxlen)
161145
{

0 commit comments

Comments
 (0)