diff options
author | Chunhe Lan <Chunhe.Lan@freescale.com> | 2013-09-24 08:29:28 (GMT) |
---|---|---|
committer | Rivera Jose-B46482 <German.Rivera@freescale.com> | 2013-09-30 15:43:32 (GMT) |
commit | 6950fbb9458118286ccdf9e11f554b1731984a9b (patch) | |
tree | 31e53d347764219da3806b629fb532eeeaaa3580 /arch/powerpc/sysdev | |
parent | b4a8ebcee4af47c097562149cb0d9186f0c5ad38 (diff) | |
download | linux-fsl-qoriq-6950fbb9458118286ccdf9e11f554b1731984a9b.tar.xz |
powerpc/fsl-pci: Use the quirk function of fsl_pci.c instead of quirk function of quirks.c
In the fsl_pci.c, it has the quirk function: DECLARE_PCI_FIXUP_HEADER and
quirk_fsl_pcie_header. But for fixing the following notice information:
pci 0000:00:00.0: ignoring class 0x0b2000 (doesn't match header type 01)
We use the DECLARE_PCI_FIXUP_EARLY and quirk_fsl_pcie_early instead of
DECLARE_PCI_FIXUP_HEADER and quirk_fsl_pcie_header.
This patch reverts commit 586c2c9eb2bc5da79d8e093b2b7dd98b5050e094:
Remove the DECLARE_PCI_FIXUP_EARLY and quirk_freescale_class function in
the quirks.c, because they have the same function as DECLARE_PCI_FIXUP_EARLY
and quirk_fsl_pcie_early function in the fsl_pci.c.
At the same time, in the fsl_pci.c quirk_fsl_pcie_early function can handle
both of the RC devices and EP devices.
Signed-off-by: Chunhe Lan <Chunhe.Lan@freescale.com>
Change-Id: Iee569a14eeedd9a09d4511494a59d07b03f63f95
Reviewed-on: http://git.am.freescale.net:8181/4898
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Zang Tiefei-R61911 <tie-fei.zang@freescale.com>
Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
Diffstat (limited to 'arch/powerpc/sysdev')
-rw-r--r-- | arch/powerpc/sysdev/fsl_pci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c index 5648137..d213c83 100644 --- a/arch/powerpc/sysdev/fsl_pci.c +++ b/arch/powerpc/sysdev/fsl_pci.c @@ -41,7 +41,7 @@ static int fsl_pcie_bus_fixup, is_mpc83xx_pci; -static void quirk_fsl_pcie_header(struct pci_dev *dev) +static void quirk_fsl_pcie_early(struct pci_dev *dev) { u8 hdr_type; @@ -626,7 +626,8 @@ no_bridge: } #endif /* CONFIG_FSL_SOC_BOOKE || CONFIG_PPC_86xx */ -DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_FREESCALE, PCI_ANY_ID, quirk_fsl_pcie_header); +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_FREESCALE, PCI_ANY_ID, + quirk_fsl_pcie_early); #if defined(CONFIG_PPC_83xx) || defined(CONFIG_PPC_MPC512x) struct mpc83xx_pcie_priv { |