Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83938
b: refs/heads/master
c: a09ad3c
h: refs/heads/master
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Feb 6, 2008
1 parent abb0823 commit 29bd6de
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bb125fb0e09c1b1e17d0b616f0e31fea937af9f6
refs/heads/master: a09ad3c462e802f0a522969ce377820cfad89ee8
10 changes: 10 additions & 0 deletions trunk/drivers/of/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,15 @@ static int of_platform_device_resume(struct device * dev)
return error;
}

static void of_platform_device_shutdown(struct device *dev)
{
struct of_device *of_dev = to_of_device(dev);
struct of_platform_driver *drv = to_of_platform_driver(dev->driver);

if (dev->driver && drv->shutdown)
drv->shutdown(of_dev);
}

int of_bus_type_init(struct bus_type *bus, const char *name)
{
bus->name = name;
Expand All @@ -93,6 +102,7 @@ int of_bus_type_init(struct bus_type *bus, const char *name)
bus->remove = of_platform_device_remove;
bus->suspend = of_platform_device_suspend;
bus->resume = of_platform_device_resume;
bus->shutdown = of_platform_device_shutdown;
return bus_register(bus);
}

Expand Down

0 comments on commit 29bd6de

Please sign in to comment.