Commit dada7d8f authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] PPC32: Minor OCP cleanups

From: Matt Porter <mporter@kernel.crashing.org>

Fixes a warning and a printk format in OCP.
parent 93d14c84
...@@ -80,7 +80,7 @@ OCP_DEF_ATTR(vendor, "0x%04x\n"); ...@@ -80,7 +80,7 @@ OCP_DEF_ATTR(vendor, "0x%04x\n");
OCP_DEF_ATTR(function, "0x%04x\n"); OCP_DEF_ATTR(function, "0x%04x\n");
OCP_DEF_ATTR(index, "0x%04x\n"); OCP_DEF_ATTR(index, "0x%04x\n");
#ifdef CONFIG_PTE_64BIT #ifdef CONFIG_PTE_64BIT
OCP_DEF_ATTR(paddr, "0x%16Lx\n"); OCP_DEF_ATTR(paddr, "0x%016Lx\n");
#else #else
OCP_DEF_ATTR(paddr, "0x%08lx\n"); OCP_DEF_ATTR(paddr, "0x%08lx\n");
#endif #endif
...@@ -207,8 +207,6 @@ struct bus_type ocp_bus_type = { ...@@ -207,8 +207,6 @@ struct bus_type ocp_bus_type = {
int int
ocp_register_driver(struct ocp_driver *drv) ocp_register_driver(struct ocp_driver *drv)
{ {
int count = 0;
/* initialize common driver fields */ /* initialize common driver fields */
drv->driver.name = drv->name; drv->driver.name = drv->name;
drv->driver.bus = &ocp_bus_type; drv->driver.bus = &ocp_bus_type;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment