summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/cmd_bdinfo.c1
-rw-r--r--common/exports.c1
-rw-r--r--common/miiphyutil.c8
3 files changed, 6 insertions, 4 deletions
diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c
index 73c03a8..67cb0da 100644
--- a/common/cmd_bdinfo.c
+++ b/common/cmd_bdinfo.c
@@ -36,6 +36,7 @@ static void print_num(const char *name, ulong value)
printf("%-12s= 0x%08lX\n", name, value);
}
+__maybe_unused
static void print_eth(int idx)
{
char name[10], *val;
diff --git a/common/exports.c b/common/exports.c
index 717e4af..b97ca48 100644
--- a/common/exports.c
+++ b/common/exports.c
@@ -1,5 +1,6 @@
#include <common.h>
#include <exports.h>
+#include <spi.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/common/miiphyutil.c b/common/miiphyutil.c
index 88747b8..2cc23b4 100644
--- a/common/miiphyutil.c
+++ b/common/miiphyutil.c
@@ -106,9 +106,9 @@ static int legacy_miiphy_write(struct mii_dev *bus, int addr, int devad,
*/
void miiphy_register(const char *name,
int (*read)(const char *devname, unsigned char addr,
- unsigned short reg, unsigned short *value),
+ unsigned char reg, unsigned short *value),
int (*write)(const char *devname, unsigned char addr,
- unsigned short reg, unsigned short value))
+ unsigned char reg, unsigned short value))
{
struct mii_dev *new_dev;
struct legacy_mii_dev *ldev;
@@ -287,7 +287,7 @@ static struct mii_dev *miiphy_get_active_dev(const char *devname)
* Returns:
* 0 on success
*/
-int miiphy_read(const char *devname, unsigned char addr, unsigned short reg,
+int miiphy_read(const char *devname, unsigned char addr, unsigned char reg,
unsigned short *value)
{
struct mii_dev *bus;
@@ -315,7 +315,7 @@ int miiphy_read(const char *devname, unsigned char addr, unsigned short reg,
* Returns:
* 0 on success
*/
-int miiphy_write(const char *devname, unsigned char addr, unsigned short reg,
+int miiphy_write(const char *devname, unsigned char addr, unsigned char reg,
unsigned short value)
{
struct mii_dev *bus;