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/mvpp2.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/mvpp2.c')
-rw-r--r-- | drivers/net/mvpp2.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/net/mvpp2.c b/drivers/net/mvpp2.c index 62c0c2be062..5c1f5fcd569 100644 --- a/drivers/net/mvpp2.c +++ b/drivers/net/mvpp2.c @@ -35,16 +35,6 @@ DECLARE_GLOBAL_DATA_PTR; -/* 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 netdev_dbg(dev, fmt, args...) \ - printf(fmt, ##args) - #define ETH_ALEN 6 /* Octets in one ethernet addr */ #define __verify_pcpu_ptr(ptr) \ |