From 84de2f06d84e2ba7aef3bba62b3a4833bb2fb6ca Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 4 Mar 2012 19:56:57 +0000 Subject: sim: bfin: drop old linux/mii.h workarounds We had some workarounds for old linux/mii.h headers, but it breaks with newer ones. So tweak the checks a bit to work with newer ones. We'll worry about older systems once someone complains. Signed-off-by: Mike Frysinger --- sim/bfin/dv-eth_phy.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sim/bfin/dv-eth_phy.c') diff --git a/sim/bfin/dv-eth_phy.c b/sim/bfin/dv-eth_phy.c index f7d7172..e42b213 100644 --- a/sim/bfin/dv-eth_phy.c +++ b/sim/bfin/dv-eth_phy.c @@ -23,11 +23,10 @@ #include "sim-main.h" #include "devices.h" -#ifdef HAVE_LINUX_MII_H +#if defined (HAVE_LINUX_MII_H) && defined (HAVE_LINUX_TYPES_H) /* Workaround old/broken linux headers. */ -#define _LINUX_TYPES_H -#define __u16 unsigned short +#include #include #define REG_PHY_SIZE 0x20 -- cgit v1.1