Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144370
b: refs/heads/master
c: 0763ed2
h: refs/heads/master
v: v3
  • Loading branch information
Grant Likely authored and Linus Torvalds committed May 2, 2009
1 parent ddf8acf commit 9e3cd14
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 74641f584da8eccf30becfbb5507ab457187db22
refs/heads/master: 0763ed2355198cdef2f6a2098e9d52eb1fe4365d
10 changes: 0 additions & 10 deletions trunk/arch/microblaze/include/asm/of_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ static const struct of_device_id of_default_bus_ids[] = {
{},
};

/* Platform drivers register/unregister */
static inline int of_register_platform_driver(struct of_platform_driver *drv)
{
return of_register_driver(drv, &of_platform_bus_type);
}
static inline void of_unregister_platform_driver(struct of_platform_driver *drv)
{
of_unregister_driver(drv);
}

/* Platform devices and busses creation */
extern struct of_device *of_platform_device_create(struct device_node *np,
const char *bus_id,
Expand Down
10 changes: 0 additions & 10 deletions trunk/arch/powerpc/include/asm/of_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@
*
*/

/* Platform drivers register/unregister */
static inline int of_register_platform_driver(struct of_platform_driver *drv)
{
return of_register_driver(drv, &of_platform_bus_type);
}
static inline void of_unregister_platform_driver(struct of_platform_driver *drv)
{
of_unregister_driver(drv);
}

/* Platform devices and busses creation */
extern struct of_device *of_platform_device_create(struct device_node *np,
const char *bus_id,
Expand Down
10 changes: 10 additions & 0 deletions trunk/include/linux/of_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ extern int of_register_driver(struct of_platform_driver *drv,
struct bus_type *bus);
extern void of_unregister_driver(struct of_platform_driver *drv);

/* Platform drivers register/unregister */
static inline int of_register_platform_driver(struct of_platform_driver *drv)
{
return of_register_driver(drv, &of_platform_bus_type);
}
static inline void of_unregister_platform_driver(struct of_platform_driver *drv)
{
of_unregister_driver(drv);
}

#include <asm/of_platform.h>

extern struct of_device *of_find_device_by_node(struct device_node *np);
Expand Down

0 comments on commit 9e3cd14

Please sign in to comment.