All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bjorn Helgaas <bhelgaas@google.com>
To: Yijing Wang <wangyijing@huawei.com>
Cc: linux-pci@vger.kernel.org, Yinghai Lu <yinghai@kernel.org>
Subject: Re: [PATCH] PCI: fix return in pci_bus_add_device
Date: Tue, 27 May 2014 21:22:13 -0600	[thread overview]
Message-ID: <20140528032213.GP11907@google.com> (raw)
In-Reply-To: <1400729544-7940-1-git-send-email-wangyijing@huawei.com>

[+cc Yinghai]

On Thu, May 22, 2014 at 11:32:24AM +0800, Yijing Wang wrote:
> Fix device_attach() return vaule in pci_bus_add_device
> instead of meaningless 0.
> 
> Signed-off-by: Yijing Wang <wangyijing@huawei.com>
> ---
>  drivers/pci/bus.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c
> index ba2bf55..42b42b7 100644
> --- a/drivers/pci/bus.c
> +++ b/drivers/pci/bus.c
> @@ -253,7 +253,7 @@ int pci_bus_add_device(struct pci_dev *dev)
>  
>  	dev->is_added = 1;
>  
> -	return 0;
> +	return retval;

I'd like to see a Reviewed-by: from Yinghai, since he recently changed
this area, e.g.,

  4f535093cf8f PCI: Put pci_dev in device tree as early as possible
  58d9a38f6fac PCI: Skip attaching driver in device_add()

Bjorn

>  }
>  
>  /**
> -- 
> 1.7.1
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pci" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2014-05-28  3:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-22  3:32 [PATCH] PCI: fix return in pci_bus_add_device Yijing Wang
2014-05-28  3:22 ` Bjorn Helgaas [this message]
2014-05-28  3:32   ` Yijing Wang
2014-05-29  0:28     ` Yinghai Lu
2014-05-29  1:37       ` Yijing Wang
2014-05-29  3:36         ` Yinghai Lu
2014-05-29  3:53           ` Yijing Wang

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=20140528032213.GP11907@google.com \
    --to=bhelgaas@google.com \
    --cc=linux-pci@vger.kernel.org \
    --cc=wangyijing@huawei.com \
    --cc=yinghai@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 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.