diff options
-rw-r--r-- | backport/backport-include/linux/device.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backport/backport-include/linux/device.h b/backport/backport-include/linux/device.h index fa269d22..5eda359f 100644 --- a/backport/backport-include/linux/device.h +++ b/backport/backport-include/linux/device.h @@ -229,4 +229,8 @@ static inline void *dev_get_platdata(const struct device *dev) } #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,13,0) +#define devm_kmalloc(dev, size, flags) devm_kzalloc(dev, size, flags) +#endif + #endif /* __BACKPORT_DEVICE_H */ |