On Mar 4, 2013, at 2:40 AM, Jia Hongtao wrote:

> mpc85xx_pci_err_probe(struct platform_device *op) need platform_device
> declaration for definition. Otherwise, it will cause compile error if any
> files including fsl_pci.h without declaration of platform_device.
> 
> Signed-off-by: Jia Hongtao <b38...@freescale.com>
> ---
> arch/powerpc/sysdev/fsl_pci.h |    2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
> 

Where does the compile error show up?

- k

> diff --git a/arch/powerpc/sysdev/fsl_pci.h b/arch/powerpc/sysdev/fsl_pci.h
> index c495c00..df66721 100644
> --- a/arch/powerpc/sysdev/fsl_pci.h
> +++ b/arch/powerpc/sysdev/fsl_pci.h
> @@ -14,6 +14,8 @@
> #ifndef __POWERPC_FSL_PCI_H
> #define __POWERPC_FSL_PCI_H
> 
> +#include <linux/platform_device.h>
> +
> #define PCIE_LTSSM    0x0404          /* PCIE Link Training and Status */
> #define PCIE_LTSSM_L0 0x16            /* L0 state */
> #define PCIE_IP_REV_2_2               0x02080202 /* PCIE IP block version 
> Rev2.2 */
> -- 
> 1.7.5.1
> 

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to