|
@@ -494,6 +494,11 @@ static inline struct device *root_device_register(const char *name)
|
|
}
|
|
}
|
|
extern void root_device_unregister(struct device *root);
|
|
extern void root_device_unregister(struct device *root);
|
|
|
|
|
|
|
|
+static inline void *dev_get_platdata(const struct device *dev)
|
|
|
|
+{
|
|
|
|
+ return dev->platform_data;
|
|
|
|
+}
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* Manual binding of a device to driver. See drivers/base/bus.c
|
|
* Manual binding of a device to driver. See drivers/base/bus.c
|
|
* for information on use.
|
|
* for information on use.
|