diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2018-07-26 03:15:58 -0700 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2018-10-09 14:18:17 -0500 |
commit | b06d76f9ae2eae389ddaa74abeee7987bdf1b9d4 (patch) | |
tree | 75c8db9b62735fc9d53ec650489688965107913e /drivers/net/mvneta.c | |
parent | 145663991fc3f214d88c22d2240ce30d2f987848 (diff) |
linux/compat.h: Add netdev_### log macros
Currently there are two ethernet drivers (mvneta.c and mvpp2.c) that
has netdev_### (eg: netdev_dbg) log macros defined in its own driver
file. This adds these log macros in a common place linux/compat.h.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/mvneta.c')
-rw-r--r-- | drivers/net/mvneta.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c index ab697b9bc7..8cb04b52d7 100644 --- a/drivers/net/mvneta.c +++ b/drivers/net/mvneta.c @@ -34,14 +34,6 @@ DECLARE_GLOBAL_DATA_PTR; # error Marvell mvneta requires PHYLIB #endif -/* Some linux -> U-Boot compatibility stuff */ -#define netdev_err(dev, fmt, args...) \ - printf(fmt, ##args) -#define netdev_warn(dev, fmt, args...) \ - printf(fmt, ##args) -#define netdev_info(dev, fmt, args...) \ - printf(fmt, ##args) - #define CONFIG_NR_CPUS 1 #define ETH_HLEN 14 /* Total octets in header */ |