summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoachim Nilsson <troglobit@gmail.com>2015-02-25 16:15:02 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-02-28 00:47:00 +0100
commitf1651a24280997c75836b4380bcbf60fd2aa34fd (patch)
tree63e9b86d2678a7ea5f0726b342d5eab7d85d7783
parentc517d838eb7d07bbe9507871fab3931deccff539 (diff)
downloadlinux-f1651a24280997c75836b4380bcbf60fd2aa34fd.tar.gz
PCI: versatile: Update for list_for_each_entry() API change
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>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/pci/host/pci-versatile.c2
1 files changed, 1 insertions, 1 deletions
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)) {