PCI: iproc: Directly add PCI resources
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 24 May 2015 20:37:02 +0000 (22:37 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 27 May 2015 23:27:54 +0000 (18:27 -0500)
commit18c4342aa56d70176eea85021e6fe8f6f8f39c7b
treebbd138c03d8ca533fee4362b0325eb79340a92da
parent4785ffbdc9b52e308e43b9e2dcc1dca44f056d76
PCI: iproc: Directly add PCI resources

The struct iproc_pcie.resources member was pointing to a stack variable and
is invalid after the registration function returned.

Remove this pointer and add a parameter to the function.

Tested-by: Ray Jui <rjui@broadcom.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Ray Jui <rjui@broadcom.com>
drivers/pci/host/pcie-iproc-bcma.c
drivers/pci/host/pcie-iproc-platform.c
drivers/pci/host/pcie-iproc.c
drivers/pci/host/pcie-iproc.h