Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH] Remove never used pci_probe variable
Date: Wed, 27 Aug 2008 10:19:35 +0100	[thread overview]
Message-ID: <20080827091935.GA28714@linux-mips.org> (raw)
In-Reply-To: <20080708.011426.08077033.anemo@mba.ocn.ne.jp>

On Tue, Jul 08, 2008 at 01:14:26AM +0900, Atsushi Nemoto wrote:

> Nobody overwrite pci_probe.  Remove it.  Also make
> pcibios_assign_all_busses weak so that platform code can overwrite it.

> diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c
> index 9dd6e01..a3dcfd4 100644
> --- a/arch/mips/pci/pci.c
> +++ b/arch/mips/pci/pci.c
> @@ -21,10 +21,6 @@
>   */
>  int pci_probe_only;
>  
> -#define PCI_ASSIGN_ALL_BUSSES	1
> -
> -unsigned int pci_probe = PCI_ASSIGN_ALL_BUSSES;
> -
>  /*
>   * The PCI controller list.
>   */
> @@ -221,9 +217,9 @@ void pcibios_set_master(struct pci_dev *dev)
>  	pci_write_config_byte(dev, PCI_LATENCY_TIMER, lat);
>  }
>  
> -unsigned int pcibios_assign_all_busses(void)
> +unsigned int __weak pcibios_assign_all_busses(void)
>  {
> -	return (pci_probe & PCI_ASSIGN_ALL_BUSSES) ? 1 : 0;
> +	return 1;
>  }
>  
>  int __weak pcibios_plat_dev_init(struct pci_dev *dev)

I think real problem here is that we have two variables which both serve the
same purpose, pci_probe_only and pci_probe, no?  Not entirely sure here
because the alpha defines:

arch/alpha/include/asm/pci.h:#define pcibios_assign_all_busses()        1

yet it has pci_probe_only ...

  Ralf

  reply	other threads:[~2008-08-27  9:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-18 15:34 [PATCH] Remove never used pci_probe variable Atsushi Nemoto
2008-07-07 16:14 ` Atsushi Nemoto
2008-08-27  9:19   ` Ralf Baechle [this message]
2008-08-27 13:22     ` Atsushi Nemoto
2008-08-27 21:40     ` Thomas Bogendoerfer

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=20080827091935.GA28714@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=anemo@mba.ocn.ne.jp \
    --cc=linux-mips@linux-mips.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