]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
linux/compat.h: Remove redefinition of dev_xxx macros
authorSean Anderson <seanga2@gmail.com>
Mon, 5 Oct 2020 01:39:56 +0000 (21:39 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 16 Oct 2020 13:44:27 +0000 (09:44 -0400)
All users of these functions now include dm/device_compat.h directly.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/linux/compat.h

index d129780312281635d28930632ff743eb1d0a5091..38549baa251d7ea88a299cb7b27d60c3d6c3e2b6 100644 (file)
@@ -24,34 +24,6 @@ struct p_current{
 
 extern struct p_current *current;
 
-/* avoid conflict with <dm/device.h> */
-#ifdef dev_dbg
-#undef dev_dbg
-#endif
-#ifdef dev_vdbg
-#undef dev_vdbg
-#endif
-#ifdef dev_info
-#undef dev_info
-#endif
-#ifdef dev_err
-#undef dev_err
-#endif
-#ifdef dev_warn
-#undef dev_warn
-#endif
-
-#define dev_dbg(dev, fmt, args...)             \
-       debug(fmt, ##args)
-#define dev_vdbg(dev, fmt, args...)            \
-       debug(fmt, ##args)
-#define dev_info(dev, fmt, args...)            \
-       printf(fmt, ##args)
-#define dev_err(dev, fmt, args...)             \
-       printf(fmt, ##args)
-#define dev_warn(dev, fmt, args...)            \
-       printf(fmt, ##args)
-
 #define GFP_ATOMIC ((gfp_t) 0)
 #define GFP_KERNEL ((gfp_t) 0)
 #define GFP_NOFS ((gfp_t) 0)