Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH] pci-versatile.c: Update for API change in list_for_each_entry()
@ 2015-02-25 15:15 Arnd Bergmann
  2015-02-26  7:41 ` Linus Walleij
  0 siblings, 1 reply; 5+ messages in thread
From: Arnd Bergmann @ 2015-02-25 15:15 UTC (permalink / raw)
  To: Bjorn Helgaas
  Cc: Joachim Nilsson, linux-pci, Rob Herring, Linus Walleij,
	Rafael J. Wysocki

From: Joachim Nilsson <troglobit@gmail.com>

In Linux 4.0-rc1 ARM Versatile PCI build fails to build due to what
appears to be an API update.  This patch is a very simple correction,
merely posted as a heads-up to the maintainers.  Hopefully a better
fix can be forwarded to Linus.

[arnd: the patch actually looks correct, so let's take this version]

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---

Joachim reported the bug, and I independently found the same problem.
The patch he sent to the list did not apply for me for an unknown reason,
but I fixed it up and forward it now to the right list of recipients.

diff --git a/drivers/pci/host/pci-versatile.c b/drivers/pci/host/pci-versatile.c
index 1ec694a52379..464bf492ee2a 100644
--- a/drivers/pci/host/pci-versatile.c
+++ b/drivers/pci/host/pci-versatile.c
@@ -80,7 +80,7 @@ static int versatile_pci_parse_request_of_pci_ranges(struct device *dev,
 	if (err)
 		return err;
 
-	resource_list_for_each_entry(win, res, list) {
+	resource_list_for_each_entry(win, res) {
 		struct resource *parent, *res = win->res;
 
 		switch (resource_type(res)) {


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

end of thread, other threads:[~2015-02-27 23:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-25 15:15 [PATCH] pci-versatile.c: Update for API change in list_for_each_entry() Arnd Bergmann
2015-02-26  7:41 ` Linus Walleij
2015-02-26 15:45   ` Rafael J. Wysocki
2015-02-26 23:35     ` Bjorn Helgaas
2015-02-28  0:11       ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox