diff --git a/arch/arm/boards/phytec-phycore-imx31/pcm037.c b/arch/arm/boards/phytec-phycore-imx31/pcm037.c index a1ffb2e..39e7838 100644 --- a/arch/arm/boards/phytec-phycore-imx31/pcm037.c +++ b/arch/arm/boards/phytec-phycore-imx31/pcm037.c @@ -31,7 +31,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/arch/blackfin/boards/ipe337/ipe337.c b/arch/blackfin/boards/ipe337/ipe337.c index 84cc786..604062a 100644 --- a/arch/blackfin/boards/ipe337/ipe337.c +++ b/arch/blackfin/boards/ipe337/ipe337.c @@ -4,7 +4,7 @@ #include #include #include -#include +#include struct smc911x_plat smcplat = { .shift = 1, diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c index 9b1a38a..fe9d1df 100644 --- a/drivers/net/smc911x.c +++ b/drivers/net/smc911x.c @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include #include "smc911x.h" diff --git a/include/platform_data/eth-smc911x.h b/include/platform_data/eth-smc911x.h new file mode 100644 index 0000000..4a802ee --- /dev/null +++ b/include/platform_data/eth-smc911x.h @@ -0,0 +1,24 @@ +/* + * (C) Copyright 2012 Jean-Christophe PLAGNIOL-VILLARD + * + * Under GPLv2 + */ + +#ifndef __SMC911X_PLATFORM_H_ +#define __SMC911X_PLATFORM_H_ + +/** + * @brief Platform dependent feature: + * Pass pointer to this structure as part of device_d -> platform_data + */ +struct smc911x_plat { + int shift; + unsigned int flags; + unsigned int phy_mask; /* external PHY only: mask out PHYs, + e.g. ~(1 << 5) to use PHY addr 5 */ +}; + +#define SMC911X_FORCE_INTERNAL_PHY 0x01 +#define SMC911X_FORCE_EXTERNAL_PHY 0x02 + +#endif /* __SMC911X_PLATFORM_H_ */ diff --git a/include/smc911x.h b/include/smc911x.h deleted file mode 100644 index 4a802ee..0000000 --- a/include/smc911x.h +++ /dev/null @@ -1,24 +0,0 @@ -/* - * (C) Copyright 2012 Jean-Christophe PLAGNIOL-VILLARD - * - * Under GPLv2 - */ - -#ifndef __SMC911X_PLATFORM_H_ -#define __SMC911X_PLATFORM_H_ - -/** - * @brief Platform dependent feature: - * Pass pointer to this structure as part of device_d -> platform_data - */ -struct smc911x_plat { - int shift; - unsigned int flags; - unsigned int phy_mask; /* external PHY only: mask out PHYs, - e.g. ~(1 << 5) to use PHY addr 5 */ -}; - -#define SMC911X_FORCE_INTERNAL_PHY 0x01 -#define SMC911X_FORCE_EXTERNAL_PHY 0x02 - -#endif /* __SMC911X_PLATFORM_H_ */