[PATCH v4 13/24] alpha/PCI: Use PCI resource accessor macros

Krzysztof Wilczyński kwilczynski at kernel.org
Fri Apr 17 20:48:01 AEST 2026


Hello,

> > @@ -181,7 +181,7 @@ static int pci_create_attr(struct pci_dev *pdev, int num)
> >  	suffix = "";	/* Assume bwx machine, normal resourceN files. */
> >  	nlen1 = 10;
> >  
> > -	if (pdev->resource[num].flags & IORESOURCE_MEM) {
> > +	if (pci_resource_flags(pdev, num) & IORESOURCE_MEM) {
> 
> This could have used the new helper but since this code is going away 
> anyway in a later patch it doesn't matter,
> 
> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen at linux.intel.com>

Taken care of in v5.

Thank you!

	Krzysztof


More information about the Linuxppc-dev mailing list