PNP: system.c whitespace cleanup
No functional change. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
@@ -47,10 +47,7 @@ static void reserve_range(char *pnpid, int start, int end, int port)
|
|||||||
printk(KERN_INFO
|
printk(KERN_INFO
|
||||||
"pnp: %s: %s range 0x%x-0x%x %s reserved\n",
|
"pnp: %s: %s range 0x%x-0x%x %s reserved\n",
|
||||||
pnpid, port ? "ioport" : "iomem", start, end,
|
pnpid, port ? "ioport" : "iomem", start, end,
|
||||||
NULL != res ? "has been" : "could not be"
|
NULL != res ? "has been" : "could not be");
|
||||||
);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void reserve_resources_of_dev(struct pnp_dev *dev)
|
static void reserve_resources_of_dev(struct pnp_dev *dev)
|
||||||
@@ -59,12 +56,9 @@ static void reserve_resources_of_dev( struct pnp_dev *dev )
|
|||||||
|
|
||||||
for (i = 0; i < PNP_MAX_PORT; i++) {
|
for (i = 0; i < PNP_MAX_PORT; i++) {
|
||||||
if (!pnp_port_valid(dev, i))
|
if (!pnp_port_valid(dev, i))
|
||||||
/* end of resources */
|
|
||||||
continue;
|
continue;
|
||||||
if (pnp_port_start(dev, i) == 0)
|
if (pnp_port_start(dev, i) == 0)
|
||||||
/* disabled */
|
continue; /* disabled */
|
||||||
/* Do nothing */
|
|
||||||
continue;
|
|
||||||
if (pnp_port_start(dev, i) < 0x100)
|
if (pnp_port_start(dev, i) < 0x100)
|
||||||
/*
|
/*
|
||||||
* Below 0x100 is only standard PC hardware
|
* Below 0x100 is only standard PC hardware
|
||||||
@@ -76,14 +70,10 @@ static void reserve_resources_of_dev( struct pnp_dev *dev )
|
|||||||
*/
|
*/
|
||||||
continue;
|
continue;
|
||||||
if (pnp_port_end(dev, i) < pnp_port_start(dev, i))
|
if (pnp_port_end(dev, i) < pnp_port_start(dev, i))
|
||||||
/* invalid endpoint */
|
continue; /* invalid */
|
||||||
/* Do nothing */
|
|
||||||
continue;
|
reserve_range(dev->dev.bus_id, pnp_port_start(dev, i),
|
||||||
reserve_range(
|
pnp_port_end(dev, i), 1);
|
||||||
dev->dev.bus_id,
|
|
||||||
pnp_port_start(dev, i),
|
|
||||||
pnp_port_end(dev, i), 1
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < PNP_MAX_MEM; i++) {
|
for (i = 0; i < PNP_MAX_MEM; i++) {
|
||||||
|
Reference in New Issue
Block a user