All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] RapidIO,powerpc/85xx: fix device node pointer
@ 2010-05-28 17:56 Alexandre Bounine
  2010-05-28 17:56 ` [PATCH -next] RapidIO: fix RapidIO sysfs hierarchy Alexandre Bounine
  2010-05-28 19:25 ` [PATCH -next] RapidIO,powerpc/85xx: fix device node pointer Grant Likely
  0 siblings, 2 replies; 3+ messages in thread
From: Alexandre Bounine @ 2010-05-28 17:56 UTC (permalink / raw)
  To: akpm, linux-kernel
  Cc: Alexandre Bounine, Matt Porter, Li Yang, Kumar Gala,
	Grant Likely, Thomas Moll

Fixes compile problem caused by overlapped patches.

Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Li Yang <leoli@freescale.com>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Thomas Moll <thomas.moll@sysgo.com>
---
 arch/powerpc/sysdev/fsl_rio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev/fsl_rio.c
index cd37e49..30e1626 100644
--- a/arch/powerpc/sysdev/fsl_rio.c
+++ b/arch/powerpc/sysdev/fsl_rio.c
@@ -1426,7 +1426,7 @@ int fsl_rio_setup(struct of_device *dev)
 	port->iores.flags = IORESOURCE_MEM;
 	port->iores.name = "rio_io_win";
 
-	priv->pwirq   = irq_of_parse_and_map(dev->node, 0);
+	priv->pwirq   = irq_of_parse_and_map(dev->dev.of_node, 0);
 	priv->bellirq = irq_of_parse_and_map(dev->dev.of_node, 2);
 	priv->txirq = irq_of_parse_and_map(dev->dev.of_node, 3);
 	priv->rxirq = irq_of_parse_and_map(dev->dev.of_node, 4);
-- 
1.7.0.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH -next] RapidIO: fix RapidIO sysfs hierarchy
  2010-05-28 17:56 [PATCH -next] RapidIO,powerpc/85xx: fix device node pointer Alexandre Bounine
@ 2010-05-28 17:56 ` Alexandre Bounine
  2010-05-28 19:25 ` [PATCH -next] RapidIO,powerpc/85xx: fix device node pointer Grant Likely
  1 sibling, 0 replies; 3+ messages in thread
From: Alexandre Bounine @ 2010-05-28 17:56 UTC (permalink / raw)
  To: akpm, linux-kernel
  Cc: Alexandre Bounine, Matt Porter, Li Yang, Kumar Gala, Thomas Moll

Makes rapidio devices appear under /sys/devices/rapidio
instead of top of devices direcrory.

Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Li Yang <leoli@freescale.com>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: Thomas Moll <thomas.moll@sysgo.com>
---
 drivers/rapidio/rio-driver.c |    2 +-
 drivers/rapidio/rio-scan.c   |    1 +
 include/linux/rio.h          |    1 +
 3 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/rapidio/rio-driver.c b/drivers/rapidio/rio-driver.c
index 3222fa3..0f4a53b 100644
--- a/drivers/rapidio/rio-driver.c
+++ b/drivers/rapidio/rio-driver.c
@@ -192,7 +192,7 @@ static int rio_match_bus(struct device *dev, struct device_driver *drv)
       out:return 0;
 }
 
-static struct device rio_bus = {
+struct device rio_bus = {
 	.init_name = "rapidio",
 };
 
diff --git a/drivers/rapidio/rio-scan.c b/drivers/rapidio/rio-scan.c
index 5664321..c9d5126 100644
--- a/drivers/rapidio/rio-scan.c
+++ b/drivers/rapidio/rio-scan.c
@@ -478,6 +478,7 @@ static struct rio_dev __devinit *rio_setup_device(struct rio_net *net,
 	}
 
 	rdev->dev.bus = &rio_bus_type;
+	rdev->dev.parent = &rio_bus;
 
 	device_initialize(&rdev->dev);
 	rdev->dev.release = rio_release_dev;
diff --git a/include/linux/rio.h b/include/linux/rio.h
index 19b5f22..d852bde 100644
--- a/include/linux/rio.h
+++ b/include/linux/rio.h
@@ -67,6 +67,7 @@
 #define RIO_PW_MSG_SIZE		64
 
 extern struct bus_type rio_bus_type;
+extern struct device rio_bus;
 extern struct list_head rio_devices;	/* list of all devices */
 
 struct rio_mport;
-- 
1.7.0.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] RapidIO,powerpc/85xx: fix device node pointer
  2010-05-28 17:56 [PATCH -next] RapidIO,powerpc/85xx: fix device node pointer Alexandre Bounine
  2010-05-28 17:56 ` [PATCH -next] RapidIO: fix RapidIO sysfs hierarchy Alexandre Bounine
@ 2010-05-28 19:25 ` Grant Likely
  1 sibling, 0 replies; 3+ messages in thread
From: Grant Likely @ 2010-05-28 19:25 UTC (permalink / raw)
  To: Alexandre Bounine
  Cc: akpm, linux-kernel, Matt Porter, Li Yang, Kumar Gala, Thomas Moll

On Fri, May 28, 2010 at 11:56 AM, Alexandre Bounine
<alexandre.bounine@idt.com> wrote:
> Fixes compile problem caused by overlapped patches.
>
> Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com>
> Cc: Matt Porter <mporter@kernel.crashing.org>
> Cc: Li Yang <leoli@freescale.com>
> Cc: Kumar Gala <galak@kernel.crashing.org>
> Cc: Grant Likely <grant.likely@secretlab.ca>
> Cc: Thomas Moll <thomas.moll@sysgo.com>

Looks correct.  I've got a few other related patches, I'll pick this
up and send it to Linus through my tree.

g.

> ---
>  arch/powerpc/sysdev/fsl_rio.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev/fsl_rio.c
> index cd37e49..30e1626 100644
> --- a/arch/powerpc/sysdev/fsl_rio.c
> +++ b/arch/powerpc/sysdev/fsl_rio.c
> @@ -1426,7 +1426,7 @@ int fsl_rio_setup(struct of_device *dev)
>        port->iores.flags = IORESOURCE_MEM;
>        port->iores.name = "rio_io_win";
>
> -       priv->pwirq   = irq_of_parse_and_map(dev->node, 0);
> +       priv->pwirq   = irq_of_parse_and_map(dev->dev.of_node, 0);
>        priv->bellirq = irq_of_parse_and_map(dev->dev.of_node, 2);
>        priv->txirq = irq_of_parse_and_map(dev->dev.of_node, 3);
>        priv->rxirq = irq_of_parse_and_map(dev->dev.of_node, 4);
> --
> 1.7.0.5
>
>



-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-28 19:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-28 17:56 [PATCH -next] RapidIO,powerpc/85xx: fix device node pointer Alexandre Bounine
2010-05-28 17:56 ` [PATCH -next] RapidIO: fix RapidIO sysfs hierarchy Alexandre Bounine
2010-05-28 19:25 ` [PATCH -next] RapidIO,powerpc/85xx: fix device node pointer Grant Likely

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.