Subject: [PATCH v12 05/12] PCI: OF: Fix the conversion of IO ranges into IO resources.

From: [email-masked] (Robert Richter)
Date: Wed, 24 Sep 2014 11:20:36 +0200

On 23.09.14 19:16:19, Bjorn Helgaas wrote:
> You probably saw the subsequent [pci:pci/host-generic 10/13]
> drivers/of/of_pci.c:202:3: error: implicit declaration of function
> 'of_pci_range_to_resource' error.
> 
> I looked at that a bit, but gave up.  Apparently drivers/of/of_pci.c
> can be compiled with CONFIG_PCI=y but CONFIG_OF_ADDRESS not set..

This is due to the !SPARC dependency in drivers/of/Kconfig:

config OF_ADDRESS
        def_bool y
        depends on !SPARC
        select OF_ADDRESS_PCI if PCI

Error above occurs with ARCH=sparc.

-Robert