]> Pileus Git - ~andy/linux/blobdiff - drivers/base/base.h
driver core: move knode_driver into private structure
[~andy/linux] / drivers / base / base.h
index 8af0bb2c0aa879e9e20bfc4ad6acf5e328b5331e..4fc5fd3984cca8e7851b7656c47bc0e75805ba96 100644 (file)
@@ -108,10 +108,13 @@ extern void bus_remove_driver(struct device_driver *drv);
 
 extern void driver_detach(struct device_driver *drv);
 extern int driver_probe_device(struct device_driver *drv, struct device *dev);
+static inline int driver_match_device(struct device_driver *drv,
+                                     struct device *dev)
+{
+       return drv->bus->match && drv->bus->match(dev, drv);
+}
 
 extern void sysdev_shutdown(void);
-extern int sysdev_suspend(pm_message_t state);
-extern int sysdev_resume(void);
 
 extern char *make_class_name(const char *name, struct kobject *kobj);