summaryrefslogtreecommitdiff
path: root/backport-include/linux/of_device.h
blob: bd33a98217cafd5f9be821dc1cd4d4262e4de1e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __BP_OF_DEVICE_H
#define __BP_OF_DEVICE_H
#include_next <linux/of_device.h>
#include <linux/version.h>


#if LINUX_VERSION_IS_LESS(4,4,0)
int bp_of_device_uevent_modalias(struct device *dev, struct kobj_uevent_env *env);
#define of_device_uevent_modalias bp_of_device_uevent_modalias
#endif

#if LINUX_VERSION_IS_LESS(4,12,0)
ssize_t bp_of_device_modalias(struct device *dev, char *str, ssize_t len);
#define of_device_modalias bp_of_device_modalias
#endif
#if LINUX_VERSION_IS_LESS(4,1,0)
static inline void of_dma_configure(struct device *dev, struct device_node *np)
{}
#endif /* < 4.1.0 */

#endif /* __BP_OF_DEVICE_H */