]> git.ipfire.org Git - thirdparty/openwrt.git/blob
f2168aa
[thirdparty/openwrt.git] /
1 # HG changeset patch
2 # Parent 95e64f01c74cf4b2ced863c6aaf323a6b1fa3d9c
3
4 --- a/common/miiphyutil.c
5 +++ b/common/miiphyutil.c
6 @@ -121,6 +121,7 @@ void miiphy_register (char *name,
7 current_mii = new_dev;
8 }
9
10 +#if defined(CONFIG_CMD_MII)
11 int miiphy_set_current_dev (char *devname)
12 {
13 struct list_head *entry;
14 @@ -146,6 +147,7 @@ char *miiphy_get_current_dev ()
15
16 return NULL;
17 }
18 +#endif
19
20 /*****************************************************************************
21 *
22 @@ -221,6 +223,7 @@ int miiphy_write (char *devname, unsigne
23 return ((found_dev) ? write_ret : 1);
24 }
25
26 +#if defined(CONFIG_CMD_MII)
27 /*****************************************************************************
28 *
29 * Print out list of registered MII capable devices.
30 @@ -327,6 +330,7 @@ int miiphy_reset (char *devname, unsigne
31 }
32 return (0);
33 }
34 +#endif
35
36 /*****************************************************************************
37 *