Patchwork [V2] powerpc/85xx: Add platform_device declaration to fsl_pci.h

login
register
mail settings
Submitter Hongtao Jia
Date March 15, 2013, 6:14 a.m.
Message ID <1363328098-20343-1-git-send-email-hongtao.jia@freescale.com>
Download mbox | patch
Permalink /patch/227857/
State Accepted, archived
Commit c7417202569ff31c4ddc88811b30925263951da1
Delegated to: Kumar Gala
Headers show

Comments

Hongtao Jia - March 15, 2013, 6:14 a.m.
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 <hongtao.jia@freescale.com>
---
Changes for V2:
- Just declare platform_device instead of including <linux/platform_device.h>

 arch/powerpc/sysdev/fsl_pci.h | 2 ++
 1 file changed, 2 insertions(+)
Kumar Gala - March 15, 2013, 4:17 p.m.
On Mar 15, 2013, at 1:14 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 <hongtao.jia@freescale.com>
> ---
> Changes for V2:
> - Just declare platform_device instead of including <linux/platform_device.h>
> 
> arch/powerpc/sysdev/fsl_pci.h | 2 ++
> 1 file changed, 2 insertions(+)

applied to next

- k

Patch

diff --git a/arch/powerpc/sysdev/fsl_pci.h b/arch/powerpc/sysdev/fsl_pci.h
index c495c00..851dd56 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
 
+struct platform_device;
+
 #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 */