mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jesse Barnes <jesse.barnes@intel.com>
To: Alex Chiang <achiang@hp.com>
Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] PCI: eliminate redundant pci_stop_dev() call from pci_destroy_dev()
Date: Thu, 11 Jun 2009 11:27:48 -0700	[thread overview]
Message-ID: <20090611112748.0601e347@jbarnes-g45> (raw)
In-Reply-To: <20090519010222.12679.74898.stgit@bob.kio>

On Mon, 18 May 2009 19:02:38 -0600
Alex Chiang <achiang@hp.com> wrote:

> We always call pci_stop_bus_device before calling pci_destroy_dev.
> 
> Since pci_stop_bus_device calls pci_stop_dev, there is no need
> for pci_destroy_dev to repeat the call.
> 
> Signed-off-by: Alex Chiang <achiang@hp.com>
> ---
> 
>  drivers/pci/remove.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/pci/remove.c b/drivers/pci/remove.c
> index 86503c1..176615e 100644
> --- a/drivers/pci/remove.c
> +++ b/drivers/pci/remove.c
> @@ -32,8 +32,6 @@ static void pci_stop_dev(struct pci_dev *dev)
>  
>  static void pci_destroy_dev(struct pci_dev *dev)
>  {
> -	pci_stop_dev(dev);
> -
>  	/* Remove the device from the device lists, and prevent any
> further
>  	 * list accesses from this device */
>  	down_write(&pci_bus_sem);

Applied to linux-next, thanks.

-- 
Jesse Barnes, Intel Open Source Technology Center

      reply	other threads:[~2009-06-11 18:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-19  1:02 Alex Chiang
2009-06-11 18:27 ` Jesse Barnes [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=20090611112748.0601e347@jbarnes-g45 \
    --to=jesse.barnes@intel.com \
    --cc=achiang@hp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.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

all inboxes | Powered by JetHome®