#include <linux/kobject.h>
#include <linux/ratelimit.h> /* dev_printk.h -> ratelimit.h */
#include <linux/module.h> /* via device/driver.h */
+#include <linux/device/bus.h>
struct device_node;
-struct bus_type {
-};
-
struct device_driver {
struct device *dev;
};
#ifndef _LINUX_DEVICE_BUS_H
#define _LINUX_DEVICE_BUS_H
-#define bus_register_notifier(a, b) 0
-#define bus_unregister_notifier(a, b) 0
+struct bus_type {
+};
+
+struct notifier_block;
+
+static inline int
+bus_register_notifier(const struct bus_type *bt, struct notifier_block *nb)
+{
+ return 0;
+}
+
+static inline int
+bus_unregister_notifier(const struct bus_type *bt, struct notifier_block *nb)
+{
+ return 0;
+}
#endif