浏览代码

net: pxa168_eth: Fix providing of phy_interface mode on platform_data

Do not add phy include to the board file but platform_data include
instead.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Sebastian Hesselbarth 10 年之前
父节点
当前提交
95f259ca3b
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 0 1
      arch/arm/mach-mmp/gplugd.c
  2. 2 0
      include/linux/pxa168_eth.h

+ 0 - 1
arch/arm/mach-mmp/gplugd.c

@@ -12,7 +12,6 @@
 #include <linux/platform_device.h>
 #include <linux/gpio.h>
 #include <linux/gpio-pxa.h>
-#include <linux/phy.h>
 
 #include <asm/mach/arch.h>
 #include <asm/mach-types.h>

+ 2 - 0
include/linux/pxa168_eth.h

@@ -4,6 +4,8 @@
 #ifndef __LINUX_PXA168_ETH_H
 #define __LINUX_PXA168_ETH_H
 
+#include <linux/phy.h>
+
 struct pxa168_eth_platform_data {
 	int	port_number;
 	int	phy_addr;