linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PCI: fix return in pci_bus_add_device
@ 2014-05-22  3:32 Yijing Wang
  2014-05-28  3:22 ` Bjorn Helgaas
  0 siblings, 1 reply; 7+ messages in thread
From: Yijing Wang @ 2014-05-22  3:32 UTC (permalink / raw)
  To: Bjorn Helgaas; +Cc: linux-pci, Yijing Wang

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;
 }
 
 /**
-- 
1.7.1



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

end of thread, other threads:[~2014-05-29  3:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-22  3:32 [PATCH] PCI: fix return in pci_bus_add_device Yijing Wang
2014-05-28  3:22 ` Bjorn Helgaas
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

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).