linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Jon Loeliger <jdl@freescale.com>
Cc: "linuxppc-dev@ozlabs.org" <linuxppc-dev@ozlabs.org>
Subject: Re: [PATCH v2 8/9] Export of_bus_pci_get_flags().
Date: Wed, 06 Jun 2007 17:08:41 +1000	[thread overview]
Message-ID: <1181113721.31677.240.camel@localhost.localdomain> (raw)
In-Reply-To: <1180996223.9632.76.camel@ld0161-tx32>

On Mon, 2007-06-04 at 17:30 -0500, Jon Loeliger wrote:
> It will be needed by the following patch.
> 
> Signed-off-by: Andy Fleming <afleming@freescale.com>
> Signed-off-by: Jon Loeliger <jdl@freescale.com>

Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

> ---
>  arch/powerpc/kernel/prom_parse.c |    2 +-
>  include/asm-powerpc/prom.h       |    1 +
>  2 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/powerpc/kernel/prom_parse.c b/arch/powerpc/kernel/prom_parse.c
> index 3786dcc..754926f 100644
> --- a/arch/powerpc/kernel/prom_parse.c
> +++ b/arch/powerpc/kernel/prom_parse.c
> @@ -153,7 +153,7 @@ static int of_bus_pci_translate(u32 *addr, u64 offset, int na)
>  	return of_bus_default_translate(addr + 1, offset, na - 1);
>  }
>  
> -static unsigned int of_bus_pci_get_flags(const u32 *addr)
> +unsigned int of_bus_pci_get_flags(const u32 *addr)
>  {
>  	unsigned int flags = 0;
>  	u32 w = addr[0];
> diff --git a/include/asm-powerpc/prom.h b/include/asm-powerpc/prom.h
> index 6845af9..0168373 100644
> --- a/include/asm-powerpc/prom.h
> +++ b/include/asm-powerpc/prom.h
> @@ -185,6 +185,7 @@ extern int pci_device_from_OF_node(struct device_node *node,
>  extern struct device_node* pci_busdev_to_OF_node(struct pci_bus *, int);
>  extern struct device_node* pci_device_to_OF_node(struct pci_dev *);
>  extern void pci_create_OF_bus_map(void);
> +extern unsigned int of_bus_pci_get_flags(const u32 *addr);
>  #endif
>  
>  extern struct resource *request_OF_resource(struct device_node* node,

      reply	other threads:[~2007-06-06  7:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-04 22:30 [PATCH v2 8/9] Export of_bus_pci_get_flags() Jon Loeliger
2007-06-06  7:08 ` Benjamin Herrenschmidt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1181113721.31677.240.camel@localhost.localdomain \
    --to=benh@kernel.crashing.org \
    --cc=jdl@freescale.com \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).