blkcg: fix blkcg_policy_data allocation bug
[firefly-linux-kernel-4.4.55.git] / include / linux / of_device.h
index 22801b10cef5dd279ade089b9c10e9aa4f134aeb..4c508549833a53fc76b59ba6a0bda354fc4d051f 100644 (file)
@@ -33,6 +33,8 @@ extern int of_device_add(struct platform_device *pdev);
 extern int of_device_register(struct platform_device *ofdev);
 extern void of_device_unregister(struct platform_device *ofdev);
 
+extern const void *of_device_get_match_data(const struct device *dev);
+
 extern ssize_t of_device_get_modalias(struct device *dev,
                                        char *str, ssize_t len);
 
@@ -65,6 +67,11 @@ static inline int of_driver_match_device(struct device *dev,
 static inline void of_device_uevent(struct device *dev,
                        struct kobj_uevent_env *env) { }
 
+static inline const void *of_device_get_match_data(const struct device *dev)
+{
+       return NULL;
+}
+
 static inline int of_device_get_modalias(struct device *dev,
                                   char *str, ssize_t len)
 {