git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
time: ntp: refactor do_adjtimex() some more
[safe/jmp/linux-2.6]
/
include
/
linux
/
of_platform.h
diff --git
a/include/linux/of_platform.h
b/include/linux/of_platform.h
index
c85d0f8
..
3d327b6
100644
(file)
--- a/
include/linux/of_platform.h
+++ b/
include/linux/of_platform.h
@@
-26,13
+26,12
@@
extern struct bus_type of_platform_bus_type;
/*
* An of_platform_driver driver is attached to a basic of_device on
/*
* An of_platform_driver driver is attached to a basic of_device on
- * the "platform bus" (of_platform_bus_type) (or ISA, EBUS and SBUS
- * busses on sparc).
+ * the "platform bus" (of_platform_bus_type).
*/
struct of_platform_driver
{
*/
struct of_platform_driver
{
- c
har
*name;
-
struct of_device_id
*match_table;
+ c
onst char
*name;
+
const struct of_device_id
*match_table;
struct module *owner;
int (*probe)(struct of_device* dev,
struct module *owner;
int (*probe)(struct of_device* dev,
@@
-48,8
+47,14
@@
struct of_platform_driver
#define to_of_platform_driver(drv) \
container_of(drv,struct of_platform_driver, driver)
#define to_of_platform_driver(drv) \
container_of(drv,struct of_platform_driver, driver)
+extern int of_register_driver(struct of_platform_driver *drv,
+ struct bus_type *bus);
+extern void of_unregister_driver(struct of_platform_driver *drv);
+
#include <asm/of_platform.h>
extern struct of_device *of_find_device_by_node(struct device_node *np);
#include <asm/of_platform.h>
extern struct of_device *of_find_device_by_node(struct device_node *np);
+extern int of_bus_type_init(struct bus_type *bus, const char *name);
+
#endif /* _LINUX_OF_PLATFORM_H */
#endif /* _LINUX_OF_PLATFORM_H */