Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1651a24 authored by Joachim Nilsson's avatar Joachim Nilsson Committed by Rafael J. Wysocki
Browse files

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: default avatarJoachim Nilsson <troglobit@gmail.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Acked-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent c517d838
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -80,7 +80,7 @@ static int versatile_pci_parse_request_of_pci_ranges(struct device *dev,
	if (err)
	if (err)
		return err;
		return err;


	resource_list_for_each_entry(win, res, list) {
	resource_list_for_each_entry(win, res) {
		struct resource *parent, *res = win->res;
		struct resource *parent, *res = win->res;


		switch (resource_type(res)) {
		switch (resource_type(res)) {