diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-05-05 08:47:39 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-23 09:23:59 +0200 |
commit | cd089b9e05aad31244059ba88988afbe1db02e5e (patch) | |
tree | 81d344bb292ff39e60f74ac4df5f1621eca77c05 /rtemsbsd/powerpc/include/linux/device.h | |
parent | Import DPAA driver snapshot (diff) | |
download | rtems-libbsd-cd089b9e05aad31244059ba88988afbe1db02e5e.tar.bz2 |
Linux update to 4.11-rc5
Linux baseline a71c9a1c779f2499fb2afc0553e543f18aff6edf (4.11-rc5).
Diffstat (limited to 'rtemsbsd/powerpc/include/linux/device.h')
-rw-r--r-- | rtemsbsd/powerpc/include/linux/device.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/rtemsbsd/powerpc/include/linux/device.h b/rtemsbsd/powerpc/include/linux/device.h index 5ba628ab..4a6bc301 100644 --- a/rtemsbsd/powerpc/include/linux/device.h +++ b/rtemsbsd/powerpc/include/linux/device.h @@ -48,7 +48,7 @@ enum irqreturn { IRQ_NONE = 0, IRQ_HANDLED, IRQ_WAKE_THREAD, }; typedef enum irqreturn irqreturn_t; -#include <stdio.h> +#include <sys/systm.h> #include <linux/ioport.h> #include <linux/of.h> @@ -85,14 +85,20 @@ devm_ioremap(struct device *dev, resource_size_t offset, resource_size_t size) #define devm_alloc_percpu(dev, type) \ devm_kzalloc(dev, sizeof(type) * rtems_get_processor_count(), GFP_KERNEL) +#define dev_crit(dev, fmt, ...) \ + do { (void)dev; printf(fmt, ##__VA_ARGS__); } while (0) + #define dev_err(dev, fmt, ...) \ - do { (void)dev; fprintf(stderr, fmt, ##__VA_ARGS__); } while (0) + do { (void)dev; printf(fmt, ##__VA_ARGS__); } while (0) + +#define dev_dbg(dev, fmt, ...) \ + do { (void)dev; printf(fmt, ##__VA_ARGS__); } while (0) #define dev_warn(dev, fmt, ...) \ - do { (void)dev; fprintf(stderr, fmt, ##__VA_ARGS__); } while (0) + do { (void)dev; printf(fmt, ##__VA_ARGS__); } while (0) #define dev_info(dev, fmt, ...) \ - do { (void)dev; fprintf(stderr, fmt, ##__VA_ARGS__); } while (0) + do { (void)dev; printf(fmt, ##__VA_ARGS__); } while (0) static inline struct device * get_device(struct device *dev) |