[patch 28/54] PNP: remove pnp_mem_flags() as an lvalue

From: Bjorn Helgaas
Date: Fri Apr 25 2008 - 14:51:39 EST


A future change will change pnp_mem_flags() from a "#define that
simplifies to an lvalue" to "an inline function that returns the
flags value."

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@xxxxxx>

Index: work10/drivers/pnp/quirks.c
===================================================================
--- work10.orig/drivers/pnp/quirks.c 2008-04-25 11:12:16.000000000 -0600
+++ work10/drivers/pnp/quirks.c 2008-04-25 11:15:01.000000000 -0600
@@ -114,6 +114,7 @@
static void quirk_system_pci_resources(struct pnp_dev *dev)
{
struct pci_dev *pdev = NULL;
+ struct resource *res;
resource_size_t pnp_start, pnp_end, pci_start, pci_end;
int i, j;

@@ -173,7 +174,8 @@
pci_name(pdev), i,
(unsigned long long) pci_start,
(unsigned long long) pci_end);
- pnp_mem_flags(dev, j) = 0;
+ res = pnp_get_resource(dev, IORESOURCE_MEM, j);
+ res->flags = 0;
}
}
}

--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/